[Answered ]-Django models can't migrate

3πŸ‘

βœ…

As mentioned in error log, problem is in : ginsdb.0002_ginlocal... that is located in ../Path_To_Your_App/ginsdb/migrations

You have 2 choices:

1- If your database is empty and you have not entered anything in it can simply create a new database, change you database in settings.py, clear all migrations in ../Path_To_Your_App/ginsdb/migrations and then try this:

>>>python manage.py makemigrations
>>>python manage.py migrate ginsdb

2- If you don’t prefer to change your database should find cause of error, for beginning should post all files in your ../Path_To_Your_App/ginsdb/migrations/
and say the steps you go to design your models.

In some cases it will simply work when you delete ../Path_To_Your_App/ginsdb/migrations/ginsdb.0002_ginlocal...

-1πŸ‘

I will suggest you to make the project and copy the app and as well as the sqlite file then update you settings.py by adding your app. It will solve your problem

πŸ‘€Nitesh Singh

Leave a comment