Skip to content
Snippets Groups Projects
Commit 2b6b7c90 authored by Johannes Raggam's avatar Johannes Raggam
Browse files

urls above /program or /nop are currently not handled by deliverance, so we...

urls above /program or /nop are currently not handled by deliverance, so we need a /program/static url here.
parent 03131c84
Branches
Tags
No related merge requests found
...@@ -5,6 +5,9 @@ from django.views.generic.list_detail import object_detail, object_list ...@@ -5,6 +5,9 @@ from django.views.generic.list_detail import object_detail, object_list
from models import Host, Show, TimeSlot from models import Host, Show, TimeSlot
from views import current_show, day_schedule, recommendations, show_list, week_schedule 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 = { hosts_dict = {
'queryset': Host.objects.all(), 'queryset': Host.objects.all(),
'template_object_name': 'host' 'template_object_name': 'host'
...@@ -32,4 +35,5 @@ urlpatterns = patterns('', ...@@ -32,4 +35,5 @@ urlpatterns = patterns('',
url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, shows_dict, name='show-detail'), 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'^(?P<object_id>\d+)/?$', object_detail, timeslots_dict, name='timeslot-detail'),
url(r'^week/?$', week_schedule), url(r'^week/?$', week_schedule),
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PROGRAM_STATIC_DIR}),
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment