From 5d0777e9ccd067da14aa55a1e147d38c04654414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Fri, 30 Dec 2011 02:33:51 +0100 Subject: Added projects urls and updated navigation. --- sublab_project/projects/urls.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sublab_project/projects/urls.py (limited to 'sublab_project/projects') diff --git a/sublab_project/projects/urls.py b/sublab_project/projects/urls.py new file mode 100644 index 0000000..788e18a --- /dev/null +++ b/sublab_project/projects/urls.py @@ -0,0 +1,11 @@ +from django.conf.urls.defaults import patterns, include, url +from django.views.generic import DetailView, ListView + +from projects.models import Project + + +urlpatterns = patterns('', + url('^$', ListView.as_view(model=Project), name='projects_list'), + url('^(?P[-\w]+)/$', DetailView.as_view(model=Project), + name='projects_detail'), +) -- cgit v1.2.1