When tried to create super user using the command python manage.py createsuperuser,
it takes all the inputs correctly but throws below error at last.
ERROR: Django.db.utils.IntegrityError: NOT NULL constraint failed: auth_user.last_login
SOLUTION:
If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged
it takes all the inputs correctly but throws below error at last.
ERROR: Django.db.utils.IntegrityError: NOT NULL constraint failed: auth_user.last_login
SOLUTION:
- python manage.py makemigrations
- python manage.py migrate
If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged
No comments:
Write comments