#35063: Django 5 LOGOUT_REDIRECT_URL does not work correctly
-----------------------------------------+------------------------
Reporter: Koljasha | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Procedure, explanation:
* create default project 'root': `django-admin startproject root`
* do migrate: `python manage.py migrate`
* createsuperuser: `python manage.py createsuperuser`
* add in `root/settings.py` for example: `LOGOUT_REDIRECT_URL =
'admin:index'`
* add in `root/urls.py`: `path('accounts/',
include('django.contrib.auth.urls')),`
* after authorization, I do:
http://127.0.0.1:8000/accounts/logout/ - in 4.2.8 correct - redirect:
http://127.0.0.1:8000/admin/login/?next=/admin/ - in 5.0 not correct - only white screen and in console: "GET
/accounts/logout/ HTTP/1.1" 405 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35063>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.