Blog Archive for December 3, 2010

Generating SQL for Django Apps

December 3, 2010

Sometimes, you don't have direct access to the database and so can't rely on Django creating tables with syncdb.

Normally, you can run

$ ./manage.py sql appname

To generate the SQL to create tables for the appname app.

I was looking at the documentation and trying to work out how …