|
syncdb can't do it, but your best bet is probably manage.py sqlclear and sqlall: sqlall [appname ...] Prints the CREATE TABLE, initial-data and CREATE INDEX SQL statements for the given model module name(s). sqlclear [appname ...] Prints the DROP TABLE SQL statements for the given app name(s). You can make a shell script to pipe the output of these into your database's command line client
|
# ¿ Apr 23, 2008 01:01 |
|
|
# ¿ Apr 29, 2024 18:19 |
|
For getting plurality right, django offers the pluralize template tag
|
# ¿ May 23, 2008 15:46 |