[Answered ]-Django ValueError: field admin.LogEntry.user was declared with a lazy reference to 'app.user', but app 'app' doesn't provide model 'user'

1👍

It happens if you ran default auth app migrations and later changed the AUTH_USER_MODEL in settings.py. You can try following:

#comments AUTH_USER_MODEL in the settings.py file so it points to a default User Model

Python manage.py migrate auth zero

#Uncomment AUTH_USER_MODEL='recommend.AuthUser'

Python manage.py migrate auth

Source

If it’s doesn’t solve your problems and you are using Sqlite3 you can:

Delete all migration files except __init__.py file.

Leave a comment