Could you explain more on "the module disappeared when the request
finalizes"?  Did you attach the global variable to your request object?
 You don't need to do that, just do:

import myapp
print myapp.global_variable

... something like that.

Hmm, I wonder the way you run your django server may have something to
do with this... If you run it as CGI, then your change to the global
variable won't persist between request; if you run it as FCGI, then
your change to the global variable won't be reflected between different
FCGI processes; if you run it as the built-in server, your change to
the global variable will be lost once you have made other code changes
and the built-in server restarted automatically...

I


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