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?
Asked
Active
Viewed 3,540 times
1 Answers
3
use SQL for the command which will return all the SQL it will attempt to run
django-admin.py sqlall <App>

Steve
- 1,201
- 8
- 14
-
4it's django-admin.py and not django_manage.py. and I would use 'sqlall
' instead of 'sql – Sergio Morstabilini Mar 28 '11 at 15:31' -
And will output DDL, not DML. syncdb inserts data too. – laffuste Sep 13 '13 at 08:57