From fb63d64d02c7c7d46da7f5cc2eaaa27f1f372231 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 20 Feb 2012 14:50:42 +0100 Subject: [PATCH] insert a / between agenda and agenda-url --- openslides/urls.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openslides/urls.py b/openslides/urls.py index 97c312ca4..e322174a7 100644 --- a/openslides/urls.py +++ b/openslides/urls.py @@ -13,14 +13,20 @@ from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin +from django.views.generic import RedirectView admin.autodiscover() handler500 = 'openslides.utils.views.server_error' urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), - (r'^$', 'agenda.views.overview'), - (r'^agenda', include('agenda.urls')), + # frontpage + (r'^$', RedirectView.as_view( + url='agenda/', + permanent = False, + )), + + (r'^agenda/', include('agenda.urls')), (r'', include('application.urls')), (r'', include('participant.urls')), (r'', include('assignment.urls')),