[Solved]-Creating users in django (NOT NULL constraint failed: auth_user.last_login)

31👍

last_login field changed in django 1.8. Just run the migrations

python manage.py migrate

3👍

Same issue, Had to run python manage.py migrate --fake and then python manage.py migrate and it worked perfectly.

-1👍

In the app folder there is migration folder.. remove all files from it just keep pycache folder and init.py
then execute python manage.py migrate and then python manage.py makemigrations ..
simply we are removing the older migrations and migrating them again

Leave a comment