On Mon, 2007-08-20 at 09:57 +0000, omat wrote: > Thanks for the reply... > > I used the existing database instead of the test database to hook to > the user's session like this: > > from django.test.client import Client > from django.contrib.sessions.models import Session > > client = Client() > client.session = Session.objects.get(session_key = key_from_traceback) > > > but did not work.
If you're using the test framework, it doesn't talk to the production database. It creates it's own testing database (read the testing docs for more information). So your above query is talking to an empty table unless you have populated it yourself. Regards, Malcolm -- No one is listening until you make a mistake. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---