Does django-debug-tool lead to redirection on admin site?

302 FOUND

Location: / admin /

The Debug Django toolbar intercepted a redirect to the above URL for viewing debugging purposes. You can click the link above to continue the redirect, as usual.

the loop is between /admin and /admin/login/?next=/admin/

+5
source share
1 answer

In a situation when I encountered this problem, it turned out that importing magic settings incorrectly sets the SESSION_COOKIE_DOMAIN parameter. After we fixed this parameter, the problem was resolved.

We arrived at a decision after reading the following account:

https://www.reddit.com/r/django/comments/2knwo8/migrating_from_heroku_to_digital_ocean_nginx_post/

+1
source

Source: https://habr.com/ru/post/1235299/


All Articles