15👍
✅
Andrew Godwin provided an answer:
Yes, use:
./manage.py syncdb --all
then:
./manage.py migrate --fake
This will, however, also ignore any migrations that add in data to the database.
3👍
syncdb
is no longer supported, instead, see this answer:
- Delete all the folders named ‘migrations’.
- Go to terminal and run:
./manage.py makemigrations
./manage.py migrate --run-syncdb
👤nak
- ImportError: No module named objectid
- Datetime Field Received a Naive Datetime
- How do I call a Django Rest Framework URL using namespacing?
- Django-celery: bind=True fails, takes 2 positional arguments but 3 were given
Source:stackexchange.com