diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/urls.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/program/urls.py b/program/urls.py index 776b9c0..78b9af4 100644 --- a/program/urls.py +++ b/program/urls.py @@ -4,10 +4,6 @@ from django.views.decorators.cache import cache_page import views -import os - -PROGRAM_SITE_MEDIA = os.path.join(os.path.dirname(__file__), '../site_media') - urlpatterns = patterns('', url(r'^today/?$', views.DayScheduleView.as_view()), url(r'^week/?$', views.WeekScheduleView.as_view()), @@ -36,4 +32,4 @@ urlpatterns = patterns('', if settings.DEBUG: urlpatterns += \ patterns('', - url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PROGRAM_SITE_MEDIA})) + url(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT})) |