On 8/24/07, Rodrigue <[EMAIL PROTECTED]> wrote:
> This works fine when I unittest it. But then, I create an instances of
> SomeClass in Django and...it does not work...and in the strangest way:
> the rest of the initialisation code is executed more than once, but
> not everytime.

When running under a real web server, there are almost always multiple
processes, each with its own copy of Django resident in memory (and,
hence, each with its own completely separate copy of your "singleton",
none of which know the others exist).


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to