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
6 # Uncomment the next two lines to enable the admin:
7 from django.contrib import admin
11 url(r'^$', RedirectView.as_view(url='archive/', permanent=False)),
12 url(r'^archive/', include('archive.urls')),
13 url(r'^publish/', include('apiclient.urls')),
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'),