summaryrefslogtreecommitdiff
path: root/sublab_project/projects
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 02:33:51 +0100
committerMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 02:33:51 +0100
commit5d0777e9ccd067da14aa55a1e147d38c04654414 (patch)
treebf55508ed3eb7bc35648b3e841a24c67572efa09 /sublab_project/projects
parent5b2c404d2955599bb50635b05d9191cb4bd6e34d (diff)
Added projects urls and updated navigation.
Diffstat (limited to 'sublab_project/projects')
-rw-r--r--sublab_project/projects/urls.py11
1 files changed, 11 insertions, 0 deletions
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<slug>[-\w]+)/$', DetailView.as_view(model=Project),
+ name='projects_detail'),
+)