[Django]-Display sql query to create django model object

4👍

You can see the SQL per migration now. So assuming it’s the first sync (i.e. syncdb in older Django):

python manage.py sqlmigrate <appname> 0001

Leave a comment