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/
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With