Re: Creating a table if it doesn't exist

2006-11-07 Thread Russell Keith-Magee
On 11/7/06, Oliver Lavery <[EMAIL PROTECTED]> wrote: > I'm a little fuzzy on django's execution order, though. What would be the > safest place to do this? Initialization code in the model module seems like > the most obvious choice, but I'm a bit uncomfortable being in the dark as to > how

Re: Creating a table if it doesn't exist

2006-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 2:53 am, "Oliver Lavery" <[EMAIL PROTECTED]> wrote: > I'm a little fuzzy on django's execution order, though. What would be the > safest place to do this? Initialization code in the model module seems like > the most obvious choice, but I'm a bit uncomfortable being in the dark as to >

Creating a table if it doesn't exist

2006-11-06 Thread Oliver Lavery
I've just finished django-izing a big geo-database (I never ever again want to hunt for a list of states or countries), and it was terribly easy. manage.py inspectdb is quite the time-saver.Building the database is non-trivial however, and the SQL for building the schema was some clever