Changing test name for clearer reporting
[redakcja.git] / redakcja / urls.py
1 # -*- coding: utf-8 -*-
2
3 from django.conf.urls import include, patterns, 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
10
11 admin.autodiscover()
12
13 urlpatterns = patterns('',
14     # Auth
15     url(r'^accounts/login/$', 'django_cas.views.login', name='login'),
16     url(r'^accounts/logout/$', 'django_cas.views.logout', name='logout'),
17
18     # Admin panel
19     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
20     (r'^admin/', include(admin.site.urls)),
21
22     (r'^comments/', include('django.contrib.comments.urls')),
23
24     url(r'^$', RedirectView.as_view(url= '/documents/')),
25     url(r'^documents/', include('catalogue.urls')),
26     url(r'^apiclient/', include('apiclient.urls')),
27     url(r'^editor/', include('wiki.urls')),
28     url(r'^cover/', include('cover.urls')),
29 )
30
31 if settings.DEBUG:
32     urlpatterns += staticfiles_urlpatterns()
33     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)