2013-03-01 17:13:12 +01:00
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
|
|
|
from openslides.utils.views import RedirectView
|
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from . import views
|
2013-03-01 17:13:12 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-03-01 17:13:12 +01:00
|
|
|
# Redirect to dashboard URL
|
|
|
|
url(r'^$',
|
2013-12-09 23:56:01 +01:00
|
|
|
RedirectView.as_view(url_name='core_dashboard'),
|
2013-03-01 17:13:12 +01:00
|
|
|
name='home',),
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
url(r'^dashboard/$',
|
|
|
|
views.DashboardView.as_view(),
|
|
|
|
name='core_dashboard'),
|
|
|
|
|
|
|
|
url(r'^dashboard/select_widgets/$',
|
|
|
|
views.SelectWidgetsView.as_view(),
|
|
|
|
name='core_select_widgets'),
|
|
|
|
|
2013-03-01 17:13:12 +01:00
|
|
|
url(r'^version/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.VersionView.as_view(),
|
2013-03-01 17:13:12 +01:00
|
|
|
name='core_version',),
|
2013-09-08 14:44:41 +02:00
|
|
|
|
|
|
|
url(r'^search/$',
|
|
|
|
views.SearchView(),
|
2014-01-28 08:32:26 +01:00
|
|
|
name='core_search',),
|
|
|
|
|
|
|
|
# CustomSlide urls
|
|
|
|
url(r'^customslide/new/$',
|
|
|
|
views.CustomSlideCreateView.as_view(),
|
|
|
|
name='customslide_create'),
|
|
|
|
|
|
|
|
url(r'^customslide/(?P<pk>\d+)/edit/$',
|
|
|
|
views.CustomSlideUpdateView.as_view(),
|
|
|
|
name='customslide_update'),
|
|
|
|
|
|
|
|
url(r'^customslide/(?P<pk>\d+)/del/$',
|
|
|
|
views.CustomSlideDeleteView.as_view(),
|
|
|
|
name='customslide_delete'),
|
2014-12-26 13:45:13 +01:00
|
|
|
|
|
|
|
url(r'tags/$',
|
|
|
|
views.TagListView.as_view(),
|
|
|
|
name='core_tag_list'),
|
2015-02-14 10:10:08 +01:00
|
|
|
|
|
|
|
# Ajax Urls
|
|
|
|
url(r'^core/url_patterns/$',
|
|
|
|
views.UrlPatternsView.as_view(),
|
|
|
|
name='core_url_patterns'),
|
2014-01-28 08:32:26 +01:00
|
|
|
)
|