From 27300433922788ed6630ae61608517780385f876 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 30 Dec 2011 01:42:04 +0100 Subject: add detailed newspost view, fixup base template --- sublab_project/news/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sublab_project/news/urls.py') diff --git a/sublab_project/news/urls.py b/sublab_project/news/urls.py index a1c5c0a..c26d12d 100644 --- a/sublab_project/news/urls.py +++ b/sublab_project/news/urls.py @@ -4,5 +4,6 @@ from django.views.generic import ListView, DetailView from news.models import News urlpatterns = patterns('', - url(r'^$', ListView.as_view(model=News, paginate_by=8), name='news_list') + url(r'^$', ListView.as_view(model=News, paginate_by=8), name='news_list'), + url(r'^news/(?P[-\w]+)/$', DetailView.as_view(model=News), name='news_detail'), ) -- cgit v1.2.1