I have a problem (at least I think). I am new in all this, so I apologize If I ask something stupid. I have some site, which is working normally. When I try to make migrati
First, you must remove migration folders in each app
then, you can use migration commands
python manage.py makemigrations
python manage.py migrate
I had the same problem with postgresql-server-9.2.24-1.el7_5.x86_64
that is installing in Centos 7
by default. Installing Postgresql 11
solved the problem.
Whenever you are adding any new field and facing migrate error.
Kindly follow these steps:
python manage.py makemigrations
python manage.py migrate --fake
python manage.py makemigrations
python manage.py migrate
Generally these steps solve any kind of migration problem.
P.S. : When you face problem in only one app, I would recommend to delete entries of that particular app from the django_migrations table