Re: Using the DB Package Outside of Django

2007-08-20 Thread [EMAIL PROTECTED]
Thanks for the help. A little tip for anyone else who wants to do this: put models.py in a package. You can't have models.py in the same directory as the script because django is hard coded to get the model's package at django.db.models.base.py", line 52, in __new___. On Aug 20, 4:57 pm, "Russell

Re: Using the DB Package Outside of Django

2007-08-20 Thread Russell Keith-Magee
On 8/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've looked around and haven't found anything on it. Is there a quick > way of creating a settings.py file and calling Django's DB API to > connect to the database and start using my models? Thanks. Yes: http://www.djangoproject.com/do

Using the DB Package Outside of Django

2007-08-20 Thread [EMAIL PROTECTED]
I've used the template engine of Django in many scripts and I was wondering if there's a simple way of doing the with django.db package. I've already invested a lot of time learning Django's DB API and really like it so it would be great if I can make a models.py file and use those classes in my s