OpenSlides/openslides/urls.py

18 lines
669 B
Python
Raw Normal View History

from django.conf.urls import include, patterns, url
from django.views.generic import RedirectView
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/', permanent=True)),
2015-01-30 11:58:36 +01:00
url(r'^rest/', include(router.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')),
# The urls.py for the core app has to be the last entry in the urls.py
url(r'^', include('openslides.core.urls')),
2011-09-03 19:16:43 +02:00
)