I've created a web application using Django. I'm not very happy with it, and would like to export/translate the whole Django model I've created as an SQL statement.
I know the following statement prints the an SQL statement for incremental changes to the database:
python manage.py sqlmigrate polls 0001 But how to I export the initial (whole) model into an sql file?
Theoretically, I could simply export an SQL dump directly from the database. But my database has become messy (additional tables) and my models.py is a clean formulation of the original database.
python manage.py sqlcommand that did what you want is deprecated since Django 1.8