I apologize for the late answer, but I believe that this may be useful to someone.
I was having this same issue. After reading all of the comments to the original question, I was able to figure out what had happened.
During development, I had switched databases from an old test db to a new one which included all of the required tables rather than just changing the existing db. I had only changed the settings.py
file to update the location of the new db, and did not touch the wsgi.py
file. After migrating to the new db and removing the old file from the project, my admin user did not exist within the new database.
Based on comments by @Torsten Engelbrecht and the OP, all I needed to do was run the command suggested by @Alen thomas to make it functional again:
python manage.py createsuperuser
At this point I was able to set up the same admin account I'd used before, since it no longer existed. Now it all works fine. It might seem a little silly, but it pays to check the