urls fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 20 Oct 2011 11:32:29 +0000 (13:32 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 20 Oct 2011 11:32:29 +0000 (13:32 +0200)
apps/archive/views.py
audiobooks/urls.py

index c3f4d8c..7a22232 100644 (file)
@@ -231,9 +231,3 @@ def file_unmanaged(request, filename):
     
     err_exists = request.GET.get('exists')
     return render(request, "archive/file_unmanaged.html", locals())
-
-
-@login_required
-def logout_view(request):
-    logout(request)
-    return redirect(list_new)
index 76efbb3..9ad2de4 100644 (file)
@@ -10,8 +10,8 @@ urlpatterns = patterns('',
     url(r'^archive/', include('archive.urls')),
 
     url(r'^admin/', include(admin.site.urls)),
-    url(r'^accounts/login/', 'django.contrib.auth.views.login'),
-    url(r'^accounts/logout/', 'archive.views.logout_view', name='logout'),
+    url(r'^accounts/login/$', 'django_cas.views.login', name='login'),
+    url(r'^accounts/logout/$', 'django_cas.views.logout', name='logout'),
 )
 
 if settings.DEBUG: