Skip to content
Snippets Groups Projects
Commit 93305027 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

added explicit template names

parent 0c00f412
No related branches found
No related tags found
No related merge requests found
...@@ -27,13 +27,13 @@ urlpatterns = patterns('', ...@@ -27,13 +27,13 @@ urlpatterns = patterns('',
url(r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', day_schedule), url(r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', day_schedule),
url(r'^(?P<year>\d{4})/(?P<week>\d{1,2})/?$', week_schedule), url(r'^(?P<year>\d{4})/(?P<week>\d{1,2})/?$', week_schedule),
url(r'^current_box/?$', cache_page(current_show, 60)), url(r'^current_box/?$', cache_page(current_show, 60)),
url(r'^hosts/?$', object_list, hosts_dict), url(r'^hosts/?$', object_list, dict(hosts_dict, template_name='host_list.html')),
url(r'^hosts/(?P<object_id>\d+)/?$', object_detail, hosts_dict, name='host-detail'), url(r'^hosts/(?P<object_id>\d+)/?$', object_detail, dict(hosts_dict, template_name='host_detail.html'), name='host-detail'),
url(r'^tips/?$', recommendations), url(r'^tips/?$', recommendations),
url(r'^tips_box/?$', recommendations, recommendations_dict), url(r'^tips_box/?$', recommendations, recommendations_dict),
url(r'^shows/?$', show_list), url(r'^shows/?$', show_list),
url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, shows_dict, name='show-detail'), url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, dict(shows_dict, template_name='show_detail.html'), name='show-detail'),
url(r'^(?P<object_id>\d+)/?$', object_detail, timeslots_dict, name='timeslot-detail'), url(r'^(?P<object_id>\d+)/?$', object_detail, dict(timeslots_dict, template_name='timeslot_detail.html'), name='timeslot-detail'),
url(r'^week/?$', week_schedule), url(r'^week/?$', week_schedule),
url(r'^styles.css$', styles), url(r'^styles.css$', styles),
) )
......
...@@ -29,7 +29,7 @@ def show_list(request): ...@@ -29,7 +29,7 @@ def show_list(request):
queryset = queryset.filter(showtopic=showtopic) queryset = queryset.filter(showtopic=showtopic)
return list_detail.object_list(request, queryset=queryset, template_object_name='show') return list_detail.object_list(request, queryset=queryset, template_object_name='show', template_name='show_list.html')
def recommendations(request, template_name='recommendations.html'): def recommendations(request, template_name='recommendations.html'):
now = datetime.now() now = datetime.now()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment