Wednesday, April 27, 2016

Django | auth_user.last_login ERROR

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: 

  1. python manage.py makemigrations
  2. python manage.py migrate


If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments