Hi, I managed to overcome the problem. In the httpd.conf:
ServerName localhost #leave it as it is #use the IP address for ServerName as well. NameVirtualHost 127.1.1.1 <VirtualHost 127.1.1.1> ServerName 127.1.1.1 SetHandler python-program PythonHandler django.core.handlers.modpython PythonDebug On PythonPath "['xxx' , 'xxx/yyy'] + sys.path" <Location "/dispatcher/"> SetEnv DJANGO_SETTINGS_MODULE yyy.settings PythonInterpreter yyy </Location> </VirtualHost> In this way, we associated the yyy django web application to a specific IP address that is different from the localhost http://127.1.1.1/dispatcher/tasks - the django application http://localhost/phppgadmn - the Postgre SQL admin page Whatever localhost web page can be still access the same way is used to be. Another advantage is the Django application apache setting will not affect any existing url. Thank you. On Jul 15, 3:27 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Jul 15, 2008, at 3:15 PM, Evert wrote: > > > > >> I deployed my Django Application onto the localhost using Apache. > >> Below are the changes i did in the httpd.conf > > >> <VirtualHost *> > >> ServerName localhost > >> SetHandler python-program > >> PythonHandler django.core.handlers.modpython > >> PythonDebug On > >> PythonPath "['/xxx/', '/xxx/yyy'] + sys.path" > > I think the above section is going to ask modpython to handle all > requests for localhost, no matter what the script path. Try adding a > section like this: > > </Location "/phppgadmin"> > SetHandler None > </Location> > > That will at least tell modpython to leave that path alone, but you > might have to add something specifically telling php to pick it up. > Look at the docs here: > > http://www.djangoproject.com/documentation/modpython/ > > and see if anything seems applicable. > > Yrs, > Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---