Hey folks--

I'm trying to set up a mirror instance of Django on our webserver,
having grown tired of bringing our whole site down every time I'm
debugging new code.

I've got an Apache VirtualHost set up on port 8080 that more or less
mirrors our website.   And I've installed a separate instance of
Django to work with it.

Here's the Apache .conf settings for the main port 80 site:
    <Location "/">
                SetHandler python-program
                PythonPath "['/home/jason/killdjangokill'] + sys.path"
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE mysite.settings
                SetEnv PYTHON_EGG_CACHE /tmp
                PythonDebug On
                PythonAutoReload On
        </Location>

...and here's what I've set up for the port 8080 site:

    <Location "/">
                SetHandler python-program
                PythonPath "['/home/jason/testdjango'] + sys.path"
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE mysite_test.settings
                SetEnv PYTHON_EGG_CACHE /tmp
                PythonDebug On
                PythonAutoReload On
        </Location>

Problem is, when I reload Apache, the *main*, port 80, site gives me a
"Welcome to your first Django powered site!" message.  My guess is
that the 2nd PythonPath directive is just overriding the first one
(for the main site).  But heck if I know.  Anyone got any experience w/
this kind of thing?  From the documentation it seemed this would be
pretty straightforward, but maybe I'm going about it all wrong...?

Any & all help most gratefully appreciated!
--~--~---------~--~----~------------~-------~--~----~
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