Fix urls.py - Redirect from / to the dahsboard

This commit is contained in:
Norman Jäckel 2012-11-21 13:41:16 +01:00
parent 9122052ba6
commit d69e5a246b

View File

@ -13,7 +13,6 @@
from django.conf import settings from django.conf import settings
from django.conf.urls.defaults import patterns, url, include from django.conf.urls.defaults import patterns, url, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.core.urlresolvers import reverse_lazy
from django.shortcuts import redirect from django.shortcuts import redirect
from django.utils.importlib import import_module from django.utils.importlib import import_module
@ -23,7 +22,7 @@ handler500 = 'openslides.utils.views.server_error'
urlpatterns = patterns('', urlpatterns = patterns('',
# Redirect to dashboard URL # Redirect to dashboard URL
url(r'^$', RedirectView.as_view(url=reverse_lazy('dashboard')), name='home',), url(r'^$', RedirectView.as_view(url='dashboard'), name='home',),
(r'^agenda/', include('openslides.agenda.urls')), (r'^agenda/', include('openslides.agenda.urls')),
(r'^motion/', include('openslides.motion.urls')), (r'^motion/', include('openslides.motion.urls')),