Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 634
Sean McCully Avatar asked Sep 24 '26 07:09

Sean McCully


1 Answers

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

django-admin.py sqlall <App>
like image 184
Steve Avatar answered Sep 25 '26 22:09

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!