On 06/15/06 04:01, Jos Yule wrote: > Ok, here is what i had to do to get it to work: > > In a 'test.py' file: > > ---------------------------------------------- > from django.conf import settings > import settings as mysettings > > settings.configure(mysettings) > > from django import db > > from mainsite.models import Game > from django.contrib.auth.models import User > --------------------------------------------- > > I copied my 'settings.py' file from my django setup to the same dir as > the 'test.py' file, and imported it as mysettings - so i could then > manually pass it to the settings.configure() method. > > i then had to put my model.py file into a directory structure which > mirrored the django one. I could then also get access to the auth > database stuff (User, Groups, etc). > > Nice! >
Aren't the django db calls blocking your twisted reactor? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---