Here is the error happened when we want to try Abstract User model in the middle of the project
Here is the Error look like ๐
ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'core.user', but app 'core' doesn't provide model 'user'.
We have to remove all migrations from our project by
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
Then delete the database.Then run migrations & migrate again.
python manage.py makemigrations
python manage.py migrate
๐ Voila problem Solved..
Top comments (6)
To delete migrations with ease I have created a Script you may use here
github.com/SFARPak/Python-Django-D...
Super helpful, thank you!
My pleasure ๐
Thank you ! It solved the issues I had ๐๐ผ๐๐ฝ
what if i dont want to delete the database
I also got following error using your script:
FIND: Parameter format not correct