Add alert messages.
[audio.git] / src / audiobooks / urls.py
index eb4f030..cd83905 100644 (file)
@@ -1,17 +1,17 @@
-from django.conf import settings
-from django.conf.urls import include, url
+from django.contrib import admin
+from django.urls import include, path
 from django.views.generic import RedirectView
 from django.views.generic import RedirectView
-import django_cas.views
-
-# Uncomment the next two lines to enable the admin:
 from django.contrib import admin
 from django.contrib import admin
-admin.autodiscover()
+import django_cas_ng.views
+
 
 urlpatterns = [
 
 urlpatterns = [
-    url(r'^$', RedirectView.as_view(url='archive/', permanent=False)),
-    url(r'^archive/', include('archive.urls')),
+    path('', RedirectView.as_view(url='archive/', permanent=False)),
+    path('archive/', include('archive.urls')),
+    path('youtube/', include('youtube.urls')),
+    path('publish/', include('apiclient.urls')),
 
 
-    url(r'^admin/', include(admin.site.urls)),
-    url(r'^accounts/login/$', django_cas.views.login, name='login'),
-    url(r'^accounts/logout/$', django_cas.views.logout, name='logout'),
+    path('admin/', admin.site.urls),
+    path('accounts/login/', django_cas_ng.views.LoginView.as_view(), name='cas_ng_login'),
+    path('accounts/logout/', django_cas_ng.views.LogoutView.as_view(), name='cas_ng_logout'),
 ]
 ]