Wednesday, April 27, 2016

Django | auth_user.last_login ERROR

When tried to create super user using the command python 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


  1. python makemigrations
  2. python migrate

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

No comments:
Write comments