2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import include, patterns, url
|
2013-11-29 16:47:31 +01:00
|
|
|
|
2015-01-30 11:58:36 +01:00
|
|
|
from openslides.core.views import IndexView, ErrorView
|
2015-02-06 23:57:52 +01:00
|
|
|
from openslides.users.views import UserSettingsView, UserPasswordSettingsView
|
2015-02-18 16:07:39 +01:00
|
|
|
from openslides.utils.rest_api import router
|
2012-04-15 11:24:40 +02:00
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
handler403 = ErrorView.as_view(status_code=403)
|
|
|
|
handler404 = ErrorView.as_view(status_code=404)
|
|
|
|
handler500 = ErrorView.as_view(status_code=500)
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2015-01-30 11:58:36 +01:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2015-03-09 15:40:54 +01:00
|
|
|
url(r'^', include('openslides.core.urls')),
|
|
|
|
url(r'^core.*', IndexView.as_view()),
|
2015-01-30 11:58:36 +01:00
|
|
|
url(r'^rest/', include(router.urls)),
|
2015-02-18 16:07:39 +01:00
|
|
|
url(r'^users/', include('openslides.users.urls')),
|
2015-02-12 22:42:54 +01:00
|
|
|
url(r'^users.*', IndexView.as_view()),
|
2015-03-09 15:40:54 +01:00
|
|
|
url(r'^assignments/', include('openslides.assignments.urls')),
|
|
|
|
url(r'^assignments.*', IndexView.as_view()),
|
|
|
|
url(r'^agenda/', include('openslides.agenda.urls')),
|
|
|
|
url(r'^agenda.*', IndexView.as_view()),
|
|
|
|
url(r'^motions/', include('openslides.motions.urls')),
|
|
|
|
url(r'^motions.*', IndexView.as_view()),
|
|
|
|
url(r'^mediafiles/', include('openslides.mediafiles.urls')),
|
|
|
|
url(r'^mediafiles.*', IndexView.as_view()),
|
|
|
|
|
|
|
|
# TODO: all patterns end with ".*" can be removed after we add the global
|
|
|
|
# url-pattern "/" to the indexView
|
2015-02-08 14:57:02 +01:00
|
|
|
|
2015-02-18 16:07:39 +01:00
|
|
|
# Activate next lines to get more AngularJS views
|
2015-02-08 14:57:02 +01:00
|
|
|
# url(r'^$', IndexView.as_view()),
|
2015-01-30 11:58:36 +01:00
|
|
|
)
|
|
|
|
|
2015-02-18 16:07:39 +01:00
|
|
|
# Deprecated urls. Move them up when the apps are refactored.
|
2013-11-29 16:47:31 +01:00
|
|
|
urlpatterns += patterns(
|
2013-09-25 10:01:01 +02:00
|
|
|
'',
|
2012-07-10 14:00:51 +02:00
|
|
|
(r'^config/', include('openslides.config.urls')),
|
|
|
|
(r'^projector/', include('openslides.projector.urls')),
|
2011-07-31 10:46:29 +02:00
|
|
|
(r'^i18n/', include('django.conf.urls.i18n')),
|
2014-05-11 19:10:08 +02:00
|
|
|
(r'^ckeditor/', include('ckeditor.urls')),
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|
2011-09-03 19:16:43 +02:00
|
|
|
|
2015-02-18 16:07:39 +01:00
|
|
|
# TODO: Move these patterns into core or the users app.
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns += patterns(
|
|
|
|
'',
|
2015-01-30 11:58:36 +01:00
|
|
|
url(r'^myusersettings/$',
|
2014-10-11 14:34:49 +02:00
|
|
|
UserSettingsView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='user_settings'),
|
2015-01-30 11:58:36 +01:00
|
|
|
url(r'^myusersettings/changepassword/$',
|
2014-10-11 14:34:49 +02:00
|
|
|
UserPasswordSettingsView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='password_change'),
|
2011-09-03 19:16:43 +02:00
|
|
|
)
|