Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the django-debug-tool lead to an redirect-loop on admin site?

302 FOUND

Location: /admin/

The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal.

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

like image 523
youzipi Avatar asked Nov 05 '15 13:11

youzipi


1 Answers

In the situation I encountered this problem, it turned out that a magic settings import improperly set the SESSION_COOKIE_DOMAIN setting. After we corrected this setting, the problem was solved.

We were lead to the solution after reading the following account:

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

like image 59
rschwieb Avatar answered Nov 13 '22 07:11

rschwieb