Hi All,

I'm trying to set up multiple Django installations on the same Apache
server, same application but different code versions, one for tests,
one for development...
I've followed the instructions from
http://www.djangoproject.com/documentation/modpython/ to set them up:

<VirtualHost *:80>

...
<Location "/dev/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        PythonPath "['/home/dev/myproject/'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE myapp.settings
        SetEnv HOME /home/dev
        PythonDebug On
        PythonInterpPerDirective On
        PythonInterpreter dev
</Location>

<Location "/test/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        PythonPath "['/home/test/myproject/'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE myapp.settings
        SetEnv HOME /home/test
        PythonDebug On
        PythonInterpPerDirective On
        PythonInterpreter test
</Location>
...
</VirtualHost>


The first location called will work fine, but I'll get some random
errors as if the python interpreters were conflicting for the second
location.
So if I hit "/test/" first, I'll get the following error for "/dev/":

"ViewDoesNotExist at /dev/checklogin/
Tried p_check_login in module myapp.views. Error was:
InputSource instance has no attribute 'uri'
Request Method:     POST
Request URL:     https://xxxxxx/dev/checklogin/
Exception Type:     ViewDoesNotExist
Exception Value:     Tried p_check_login in module myapp.views.
Error was: InputSource instance has no attribute 'uri'
Exception Location:
/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/core/
urlresolvers.py
in get_callback, line 122"

Thank you very much for your help,
georges


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