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 +++++++++++ sublab_project/templates/base.html | 5 ++++- sublab_project/urls.py | 3 ++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sublab_project/projects/urls.py (limited to 'sublab_project') 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'), +) diff --git a/sublab_project/templates/base.html b/sublab_project/templates/base.html index 99470e1..f2d27e2 100644 --- a/sublab_project/templates/base.html +++ b/sublab_project/templates/base.html @@ -42,7 +42,7 @@ Home
  • - Neues + Neues
  • Termine @@ -50,6 +50,9 @@
  • Räume
  • +
  • + Projekte +
  • Webcams
  • diff --git a/sublab_project/urls.py b/sublab_project/urls.py index 7d52b8b..b853b29 100644 --- a/sublab_project/urls.py +++ b/sublab_project/urls.py @@ -11,5 +11,6 @@ urlpatterns = patterns('', # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), - url(r'^', include('news.urls')) + url(r'^projekte/', include('projects.urls')), + url(r'^', include('news.urls')), ) -- cgit v1.2.1