Thanks for the info, having PythonInterpreter in there worked!!

Thanks

On Feb 6, 6:09 pm, Sandro Dentella <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 06, 2007 at 12:18:45PM -0800, Moses Ting wrote:
>
> > Hello,
>
> > I've been having ALOT of trouble getting multiple Django instances to
> > work on one machine.  This is a local machine and I'm trying to set up
> > a dev and a test instance of Django.  The problem is that when I try
> > to access the dev site viahttp://machine:90, it still brings up the
> > test version of django.  Any help would be much appreciated...
>
> > I have the following lines in the Apache httpd conf file.
>
> Aren't you just missing 'PythonInterpreter a_name'?
>
>    If you need to put two Django installations within the same VirtualHost,
>    you'll need to take a special precaution to ensure mod_python's cache
>    doesn't mess things up. Use the PythonInterpreter directive to give
>    different <Location> directives separate interpreters:
>
>    ...
>
>    The values of PythonInterpreter don't really matter, as long as they're
>    different between the two Location blocks.
>
> *:-)
>
>
>
>
>
> > #=====================================
> > # Test Site
> > #=====================================
>
> > NameVirtualHost *:80
>
> > <VirtualHost *:80>
> >     ServerName machine:80
> >     DocumentRoot "C:/myproject/test/www"
>
> >     <Directory "C:/myproject/test/www">
> >         Options Indexes FollowSymLinks
> >         AllowOverride None
> >         Order allow,deny
> >         Allow from all
> >     </Directory>
>
> >     <Location "/website/">
> >         SetHandler python-program
> >         PythonPath "['c:/myproject/test/site'] + sys.path"
> >         PythonHandler django.core.handlers.modpython
> >         SetEnv DJANGO_SETTINGS_MODULE haltnet_site.settings
> >         PythonDebug On
> >         PythonAutoReload On
> >     </Location>
> >     <Location "/media/">
> >         SetHandler None
> >     </Location>
> >     <LocationMatch "\.(jpg|gif|png)$">
> >         SetHandler None
> >     </LocationMatch>
> > </VirtualHost>
>
> --
> Sandro Dentella  *:-)
> e-mail: [EMAIL PROTECTED]://www.tksql.org                   TkSQL Home page - 
> My GPL work


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to