From ddf39c403eef01d5c53883221fb2f5ddf0e92acc Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sat, 16 Aug 2014 18:53:53 +0200 Subject: fixed the list of shows diff --git a/program/urls.py b/program/urls.py index 59caa2a..328f4a1 100644 --- a/program/urls.py +++ b/program/urls.py @@ -13,7 +13,7 @@ hosts_dict = { 'template_object_name': 'host' } shows_dict = { - 'queryset': Show.objects.filter(programslots__until__gt=date.today()).exclude(id=1).distinct(), + 'queryset': Show.objects.all(), 'template_object_name': 'show' } timeslots_dict = { @@ -23,24 +23,29 @@ timeslots_dict = { recommendations_dict = {'template_name': 'boxes/recommendations.html'} urlpatterns = patterns('', - url(r'^today/?$', day_schedule), - url(r'^(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/?$', day_schedule), - url(r'^(?P\d{4})/(?P\d{1,2})/?$', week_schedule), - url(r'^current_box/?$', cache_page(current_show, 60)), - url(r'^hosts/?$', object_list, dict(hosts_dict, template_name='host_list.html')), - url(r'^hosts/(?P\d+)/?$', object_detail, dict(hosts_dict, template_name='host_detail.html'), name='host-detail'), - url(r'^tips/?$', recommendations), - url(r'^tips_box/?$', recommendations, recommendations_dict), - url(r'^shows/?$', show_list), - url(r'^shows/(?P[\w-]+)/?$', object_detail, dict(shows_dict, template_name='show_detail.html'), name='show-detail'), - url(r'^(?P\d+)/?$', object_detail, dict(timeslots_dict, template_name='timeslot_detail.html'), name='timeslot-detail'), - url(r'^week/?$', week_schedule), - url(r'^styles.css$', styles), + url(r'^today/?$', day_schedule), + url(r'^(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/?$', day_schedule), + url(r'^(?P\d{4})/(?P\d{1,2})/?$', week_schedule), + url(r'^current_box/?$', cache_page(current_show, 60)), + url(r'^hosts/?$', object_list, dict(hosts_dict, template_name='host_list.html')), + url(r'^hosts/(?P\d+)/?$', object_detail, + dict(hosts_dict, template_name='host_detail.html'), name='host-detail'), + url(r'^tips/?$', recommendations), + url(r'^tips_box/?$', recommendations, recommendations_dict), + url(r'^shows/?$', show_list), + url(r'^shows/(?P[\w-]+)/?$', object_detail, dict(shows_dict, template_name='show_detail.html'), + name='show-detail'), + url(r'^(?P\d+)/?$', object_detail, + dict(timeslots_dict, template_name='timeslot_detail.html'), name='timeslot-detail'), + url(r'^week/?$', week_schedule), + url(r'^styles.css$', styles), ) if settings.DEBUG: import os + PROGRAM_STATIC_DIR = os.path.join(os.path.dirname(__file__), '../site_media') urlpatterns += patterns('', - url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': PROGRAM_STATIC_DIR}), + url(r'^static/(?P.*)$', 'django.views.static.serve', + {'document_root': PROGRAM_STATIC_DIR}), ) -- cgit v0.10.2