OpenSlides/openslides/urls.py

43 lines
1.1 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
openslides.urls
~~~~~~~~~~~~~~~
Global URL list for OpenSlides.
:copyright: 2011 by the OpenSlides team, see AUTHORS.
:license: GNU GPL, see LICENSE for more details.
"""
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
from django.views.generic import RedirectView
2011-07-31 10:46:29 +02:00
admin.autodiscover()
2011-09-03 19:16:43 +02:00
handler500 = 'openslides.utils.views.server_error'
2011-07-31 10:46:29 +02:00
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
# frontpage
(r'^$', RedirectView.as_view(
url='agenda/',
permanent = False,
)),
(r'^agenda/', include('agenda.urls')),
2012-02-09 02:29:38 +01:00
(r'', include('application.urls')),
(r'', include('participant.urls')),
(r'', include('assignment.urls')),
(r'', include('system.urls')),
2012-02-20 20:35:12 +01:00
(r'projector/', include('projector.urls')),
2011-07-31 10:46:29 +02:00
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),
(r'^i18n/', include('django.conf.urls.i18n')),
)
2011-09-03 19:16:43 +02:00
urlpatterns += patterns('',
(r'^500/$', 'openslides.utils.views.server_error'),
)