Can't seem to login into Django admin URL on my production but it works fine on my local. For context, currently my site does not have SSL. Debug is set to False as well.
This was working prior to Django 4 upgrade (was previously on Django 3.08)
mysite.com/admin
keeps redirecting to mysite.com/admin/login/?next=/admin/
with a 500 error.
SOLVED
After going through my Django server logs it turned out being a missing packaged called
tzdata
. I had my timezone set to UTC so it was causing an error when accessing the admin panel.My
settings.py
regarding timzonesThanks everyone for their thoughts!