summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-07-09 09:47:13 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-07-09 09:47:13 (GMT)
commit2b6b7c90eef35d7d7c9c67d82f757b83794ebd4d (patch)
tree8af1b8598318e9becca4a3b2f7f1f5ee0b1e73a4 /program
parent03131c84a9b367fdecb5af957f154e09079e5354 (diff)
urls above /program or /nop are currently not handled by deliverance, so we need a /program/static url here.
Diffstat (limited to 'program')
-rw-r--r--program/urls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/urls.py b/program/urls.py
index 7176382..60d81a7 100644
--- a/program/urls.py
+++ b/program/urls.py
@@ -5,6 +5,9 @@ from django.views.generic.list_detail import object_detail, object_list
from models import Host, Show, TimeSlot
from views import current_show, day_schedule, recommendations, show_list, week_schedule
+import os
+PROGRAM_STATIC_DIR = os.path.join(os.path.dirname(__file__), '../site_media')
+
hosts_dict = {
'queryset': Host.objects.all(),
'template_object_name': 'host'
@@ -32,4 +35,5 @@ urlpatterns = patterns('',
url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, shows_dict, name='show-detail'),
url(r'^(?P<object_id>\d+)/?$', object_detail, timeslots_dict, name='timeslot-detail'),
url(r'^week/?$', week_schedule),
+ url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PROGRAM_STATIC_DIR}),
)