1 # -*- coding: utf-8 -*-
3 from django.conf.urls import include, url
4 from django.contrib import admin
5 from django.conf import settings
6 from django.conf.urls.static import static
7 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
8 from django.views.generic import RedirectView
9 import django_cas.views
16 url(r'^accounts/login/$', django_cas.views.login, name='login'),
17 url(r'^accounts/logout/$', django_cas.views.logout, name='logout'),
18 url(r'^admin/login/$', django_cas.views.login, name='login'),
19 url(r'^admin/logout/$', django_cas.views.logout, name='logout'),
22 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
23 url(r'^admin/', include(admin.site.urls)),
25 url(r'^$', RedirectView.as_view(url= '/documents/', permanent=False)),
26 url(r'^documents/', include('catalogue.urls')),
27 url(r'^apiclient/', include('apiclient.urls')),
28 url(r'^editor/', include('wiki.urls')),
29 url(r'^images/', include('wiki_img.urls')),
30 url(r'^cover/', include('cover.urls')),
34 urlpatterns += staticfiles_urlpatterns()
35 urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
38 urlpatterns += (url(r'^__debug__/', include(debug_toolbar.urls))),