[Django]-Django – generate CREATE TABLE sql for models

4👍

you can use command in console

python manage.py sqlmigrate <appname> migration_name

where migration name is the name of file with migration that you need.
e.g.

python manage.py sqlmigrate manager 0001_initial

Leave a comment