OpenSlides/openslides/urls.py

18 lines
660 B
Python
Raw Normal View History

from django.conf.urls import include, patterns, url
from django.views.generic import RedirectView
from openslides.core.views import IndexView
from openslides.utils.rest_api import router
2012-04-15 11:24:40 +02:00
2015-01-30 11:58:36 +01:00
urlpatterns = patterns(
'',
url(r'^(?P<url>.*[^/])$', RedirectView.as_view(url='/%(url)s/')),
2015-01-30 11:58:36 +01:00
url(r'^rest/', include(router.urls)),
url(r'^', include('openslides.core.urls')),
url(r'^agenda/', include('openslides.agenda.urls')),
url(r'^assignments/', include('openslides.assignments.urls')),
url(r'^motions/', include('openslides.motions.urls')),
url(r'^users/', include('openslides.users.urls')),
url(r'^.*$', IndexView.as_view()),
2011-09-03 19:16:43 +02:00
)