Unusual Error In Django. Cannot Login Into Admin After Creating Superuser
This is a weird problem that I am facing in my Django application. Configuration : Python 3.6 Django 2.0.6 DB : Djongo (MongoDB connector : Djongo repository) I have overwritte
Solution 1:
Were there other changes as well? I am not able to replicate this issue, if I change the create_superuser function to what you have posted, I can't even create a superuser. It just fails because the username is still being passed in, which is unexpected.
But if you did happen to get this to run, it looks like the password argument might be None which is causing the set_password function to call set_unusable_password according to the documentation.
However, to dig down to what the problem actually is more information would be needed.
Post a Comment for "Unusual Error In Django. Cannot Login Into Admin After Creating Superuser"