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?
Cheers,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---