[Fixed]-How do I create a new database for an existing App using Django South and set default values?

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:

  1. Delete all the folders named ‘migrations’.
  2. Go to terminal and run:
  • ./manage.py makemigrations
  • ./manage.py migrate --run-syncdb
👤nak

Leave a comment