Search code examples
sqldjangodjango-syncdb

Django All SQL from syncdb


This may be a real stupid question. But how do you get ALL sql statements django-admin.py is going to run or does run from a syncdb command?


Solution

  • use SQL for the command which will return all the SQL it will attempt to run

    django-admin.py sqlall <App>