[Django]-Django admin login page redirects to same page on correct login credentials

40👍

Check that SESSION_COOKIE_SECURE is not set while you are not using HTTPS.

8👍

Looks like your cookies are messed up. Please start with clearing cookies in browser. If it doesn’t help you can also check if your cookies configuration for project is correct. List of settings for cookies configuration can be found here.

👤dzida

1👍

Use the below settings for the SESSION_COOKIE_DOMAIN:

SESSION_COOKIE_DOMAIN = "yourdomain.com"
👤Shariq

Leave a comment