On Jul 1, 7:32 am, bluszcz <[EMAIL PROTECTED]> wrote:
> Hello people.
>
> I am using Apache 2.0 and mod python 3.1.4 on Ubuntu Dapper x86_64. I
> found a
> strange behavior during SetEnv directory. But let's start from the
> beginning.
> I have virtual hosts:
>
> <VirtualHost *:80>
> ServerName admin.bluszcz.coke
> PythonDebug On
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> PythonPath "sys.path + ['/home/bluszcz/coke/app']"
> SetEnv DJANGO_SETTINGS_MODULE pepsi.settings
> SetEnv HOME /home/bluszcz
> PythonInterpreter Admin
> SetEnv ADMINOS True
>
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerName bluszcz.coke
> ServerAlias *.bluszcz.coke
> PythonDebug On
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> PythonPath "sys.path + ['/home/bluszcz/coke/app']"
> SetEnv DJANGO_SETTINGS_MODULE pepsi.settings
> SetEnv HOME /home/bluszcz
> PythonInterpreter Coke
> SetEnv ADMINOS False
> </VirtualHost>
>
> Both applications in virtual hosts check in some parts of code
> os.environ('ADMINOS') and... sometimes - it is very difficult to
> reproduce
> and undetermistic - the second one (bluszcz.coke) get value from
> VirtualHost
> Admin. I set PythonInterpreter (IMVHO) propertly.
> Any one has idea what is happening?
It isn't particularly clear what you problem is. Do be aware that
SetEnv directive DOES NOT set values in os.environ dictionary. As
pointed out by others, better to take your question to the user list
and also perhaps better explain your problem.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---