Issue
when i try to run python manage.py migrate
i run into following error
Upon running python manage.py run migrations
it says no changes detected. and when i runserver it gives me warning that i have unapplied migrations as well.i have been searching internet for two hours but got not solution. Someone knowing the solution please share :)
Solution
Try python manage.py makemigrations [app name]
and if still, this does detect changes then delete the folder named migrations
which is inside your application folder and then use this python manage.py makemigrations [app name]
. Once migration happens successfully do the python manage.py migrate
.
Answered By - bSr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.