Used RedirectView from openslides.utils.views. Used reverse_lazy

instead of hard coded redirect url.
This commit is contained in:
Emanuel Schuetze 2012-11-20 12:19:12 +01:00
parent 5e97ece5f4
commit ec10f357cf

View File

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