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…
- [Django]-You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application
- [Django]-In django, how do I sort a model on a field and then get the last item?
- [Django]-What is dispatch used for in django?
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.
- [Django]-WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)
- [Django]-Django i18n: Common causes for translations not appearing
- [Django]-What are the limitations of Django's ORM?
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.
- [Django]-Why and When to use Django mark_safe() function
- [Django]-Pip install -r requirements.txt [Errno 2] No such file or directory: 'requirements.txt'
- [Django]-Check if OneToOneField is None in Django
0👍
still facing the same error, even after updating my django and doing or rather creating new migrations
- [Django]-Uploading large files with Python/Django
- [Django]-How to access array elements in a Django template?
- [Django]-Heroku django app createsuperuser