[Django]-Django 1.7 Migrations

43👍

Django 1.7.1 added support for the preserve_default param in AlterField. Therefore an upgrade of Django from version 1.7 will resolve the issue.

pip install django --upgrade
python manage.py migrate

7👍

Had the same problem. I solved it with:

pip install django --upgrade

python manage.py makemigrations

python manage.py migrate

Why exactly it gets solved like that, I dont know, someone with deeper knowledge might be able to explain…

1👍

pip install "django<1.8" -U

then run migrations…. If you update without versioning you’ll end up with another active trunk and it’s not what you want.

0👍

I met the same problem. and I found my Django version is 1.7.0.
After running pip install django --upgrade, my Django version changed to 1.7.4, and the problem is gone.

I remember the other computer that sync the projects files with this one through Internet, has Django version 1.7.3. So I come to the conclusion that this problem is caused by inconsistent versions of Django.

0👍

still facing the same error, even after updating my django and doing or rather creating new migrations

Leave a comment