% python manage.py makemigrations
You are trying to add a non-nullable field 'owner' to contact without a default;
we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows)
2) Quit, and let me add a default in models.py
Select an option:
As reported by Maciej Friedel:
I found solution on problem in Your tutorial. in section Handling Authentication & Authorization (http://effectivedjango.com/tutorial/authzn.html)
in last contacts/models.py correction there is:
but this is not correct and displaying error
because there is migration problem
the problem resolved this input:
after successful migration there can be
owner = models.ForeignKey(User)
but migration needed this default settings