summaryrefslogtreecommitdiff
path: root/program/urls.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-06-15 20:52:55 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-06-15 20:52:55 (GMT)
commit09276cc47736785e7a2784172a2cf3663de4e57e (patch)
tree202b46bfc67595a64bda7aa4ac359e0957b09189 /program/urls.py
parentb2415eb92622563f567106e2c4951ed498273e53 (diff)
parent88fb9a1d5bc7dc5f22d96fcee970f4ec9f88b289 (diff)
Merge branch 'topic/new-show-and-note-images' into stable
Diffstat (limited to 'program/urls.py')
-rw-r--r--program/urls.py6
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}))