2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import include, patterns, url
|
2015-06-16 10:37:23 +02:00
|
|
|
from django.views.generic import RedirectView
|
2013-11-29 16:47:31 +01:00
|
|
|
|
2015-02-18 16:07:39 +01:00
|
|
|
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(
|
|
|
|
'',
|
2015-06-16 10:37:23 +02:00
|
|
|
url(r'^(?P<url>.*[^/])$', RedirectView.as_view(url='/%(url)s/')),
|
2015-01-30 11:58:36 +01:00
|
|
|
url(r'^rest/', include(router.urls)),
|
2015-03-09 15:40:54 +01:00
|
|
|
url(r'^agenda/', include('openslides.agenda.urls')),
|
2015-06-16 10:37:23 +02:00
|
|
|
url(r'^assignments/', include('openslides.assignments.urls')),
|
2015-03-09 15:40:54 +01:00
|
|
|
url(r'^motions/', include('openslides.motions.urls')),
|
2015-06-16 10:37:23 +02:00
|
|
|
url(r'^users/', include('openslides.users.urls')),
|
2015-06-17 09:45:00 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
)
|