eb4f0305f9f68b918192ece2c5c14c4416e50374
[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
14     url(r'^admin/', include(admin.site.urls)),
15     url(r'^accounts/login/$', django_cas.views.login, name='login'),
16     url(r'^accounts/logout/$', django_cas.views.logout, name='logout'),
17 ]