About Failing Signing In

If signing in to a Django website fails, check if you have the correct value at SESSION_COOKIE_DOMAIN in the settings. It should match the host of your website in your environment.

For example, if your Django development website is running on http://127.0.0.1:8000, the SESSION_COOKIE_DOMAIN should be equal to "127.0.0.1". If the website is running on http://0.0.0.0:8000, the SESSION_COOKIE_DOMAIN should be "0.0.0.0".

Tips and Tricks Development Django 3.2 Django 2.2 Django 1.11 Django 1.8