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)
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: