#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cac151716-97a5ca06-2585-4530-b54e-ffd034a5e1f0-000000%40eu-central-1.amazonses.com.

Reply via email to