diff --git a/django/conf/admin_templates/logged_out.html b/django/conf/admin_templates/registration/logged_out.html similarity index 100% rename from django/conf/admin_templates/logged_out.html rename to django/conf/admin_templates/registration/logged_out.html diff --git a/django/conf/urls/admin.py b/django/conf/urls/admin.py index 92d5d1bc9e6..a55da5d3669 100644 --- a/django/conf/urls/admin.py +++ b/django/conf/urls/admin.py @@ -3,7 +3,7 @@ from django.conf.settings import INSTALLED_APPS urlpatterns = ( ('^/?$', 'django.views.admin.main.index'), - ('^logout/$', 'django.views.admin.main.logout'), + ('^logout/$', 'django.views.auth.login.logout'), ('^password_change/$', 'django.views.registration.passwords.password_change'), ('^password_change/done/$', 'django.views.registration.passwords.password_change_done'), ('^template_validator/$', 'django.views.admin.template.template_validator'), diff --git a/django/views/admin/main.py b/django/views/admin/main.py index f5772ef5477..f413e79123e 100644 --- a/django/views/admin/main.py +++ b/django/views/admin/main.py @@ -50,14 +50,6 @@ def index(request): c = Context(request, {'title': 'Site administration'}) return HttpResponse(t.render(c)) -def logout(request): - request.session.delete() - t = template_loader.get_template('logged_out') - c = Context(request, { - 'title': "You're logged out", - }) - return HttpResponse(t.render(c)) - def change_list(request, app_label, module_name): from django.core import paginator from django.utils import dateformat