diff options
author | Parth Buch | 2012-07-20 18:31:41 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-20 18:31:41 +0530 |
commit | 8d3f50af512b0f2b9ac9aef76ccf24a4f97c0481 (patch) | |
tree | 243b117319e026817b32702d760fe31317993f3c /stapp/video | |
parent | 1c9f444205a42394986b0cdb4def7ea289acc887 (diff) | |
download | stproject-8d3f50af512b0f2b9ac9aef76ccf24a4f97c0481.tar.gz stproject-8d3f50af512b0f2b9ac9aef76ccf24a4f97c0481.tar.bz2 stproject-8d3f50af512b0f2b9ac9aef76ccf24a4f97c0481.zip |
Changed the path to include URL_ROOT for dojo
Diffstat (limited to 'stapp/video')
-rw-r--r-- | stapp/video/admin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stapp/video/admin.py b/stapp/video/admin.py index a13f0ea..8c9ce49 100644 --- a/stapp/video/admin.py +++ b/stapp/video/admin.py @@ -1,15 +1,16 @@ from video.models import Video, Module from django.contrib import admin from django.contrib.admin import site, ModelAdmin +from django.conf import settings # we define our resources to add to admin pages class CommonMedia: js = ( 'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js', - '/static/admin/js/editor.js', + settings.URL_ROOT + '/static/admin/js/editor.js', ) css = { - 'all': ('/static/admin/css/editor.css',), + 'all': (settings.URL_ROOT + '/static/admin/css/editor.css',), } # let's add it to this model |