792a50fef529f173f8e9aa8b2f3d32dde6e36224
[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_ng.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'^youtube/', include('youtube.urls')),
14     url(r'^publish/', include('apiclient.urls')),
15
16     url(r'^admin/', admin.site.urls),
17     url(r'^accounts/login/$', django_cas_ng.views.LoginView.as_view(), name='login'),
18     url(r'^accounts/logout/$', django_cas_ng.views.LogoutView.as_view(), name='logout'),
19 ]