Forgotten req.
[audio.git] / src / audiobooks / urls.py
1 from django.conf import settings
2 from django.conf.urls import include, url
3 from django.views.generic import RedirectView
4 import django_cas.views
5
6 # Uncomment the next two lines to enable the admin:
7 from django.contrib import admin
8 admin.autodiscover()
9
10 urlpatterns = [
11     url(r'^$', RedirectView.as_view(url='archive/', permanent=False)),
12     url(r'^archive/', include('archive.urls')),
13     url(r'^publish/', include('apiclient.urls')),
14
15     url(r'^admin/', include(admin.site.urls)),
16     url(r'^accounts/login/$', django_cas.views.login, name='login'),
17     url(r'^accounts/logout/$', django_cas.views.logout, name='logout'),
18 ]