summaryrefslogtreecommitdiff
path: root/sublab_project/news/urls.py
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2011-12-30 00:06:08 +0100
committerChristian Franke <nobody@nowhere.ws>2011-12-30 00:07:20 +0100
commit2909dc657a865b3bf35707fa4599ecab0bfe3b8f (patch)
tree259a537676ddd1464dde3a7202c6983d521a0a38 /sublab_project/news/urls.py
parent39da608eda071907241240925e7206a80e88bc50 (diff)
add templates and first view for news
Diffstat (limited to 'sublab_project/news/urls.py')
-rw-r--r--sublab_project/news/urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sublab_project/news/urls.py b/sublab_project/news/urls.py
new file mode 100644
index 0000000..a1c5c0a
--- /dev/null
+++ b/sublab_project/news/urls.py
@@ -0,0 +1,8 @@
+from django.conf.urls.defaults import patterns, include, url
+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')
+)