From: Radek Czajka Date: Thu, 20 Oct 2011 11:32:29 +0000 (+0200) Subject: urls fix X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/ceb2c97a86cdc63b64bf9f9960f58175da992d27?ds=sidebyside urls fix --- diff --git a/apps/archive/views.py b/apps/archive/views.py index c3f4d8c..7a22232 100644 --- a/apps/archive/views.py +++ b/apps/archive/views.py @@ -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) diff --git a/audiobooks/urls.py b/audiobooks/urls.py index 76efbb3..9ad2de4 100644 --- a/audiobooks/urls.py +++ b/audiobooks/urls.py @@ -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: