What are you using in urls.py file? This is more about what you have in the urls.py file than it is an issue with mod_python or Apache. You shouldn't need to be using rewrite rules.
Graham On Feb 12, 7:04 am, <[EMAIL PROTECTED]> wrote: > I looked at the sample code there, and it tells me how to run two Django > applications under the same vhost--but I still have the problem of needing to > deal with the /x/ inhttp://foo.bar.com/x/admin/. Is there a way to use > mod_python (or something else) to proxy requests > forhttp://foo.bar.com/x/adminto Django as /admin/? (I realize I could > incorporate this into urls.py, but I'm trying to run the same Django app in > two different places.) > > Thanks, > charles > > -----Original Message----- > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Aaron > Fay > Sent: Friday, February 08, 2008 12:27 PM > To: django-users@googlegroups.com > Subject: Re: using mod_python to host several django apps on the same vhost? > > Hey Charles, > > I believe you will find that answer specifically > here:http://www.djangobook.com/en/1.0/chapter20/ > > "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 code cache > doesn't mess things up. Use the PythonInterpreter directive to give different > <Location> directives separate interpreters..." > > Cheers, > Aaron > > [EMAIL PROTECTED] wrote: > > Hi, > > I'd like to host several django applications > athttp://foo.bar.com/x,http://foo.bar.com/y, etc. Currently I'm managing them > all in the same vhost, using Apache locations to direct each URL to a > different Django project. However, this technique requires me to rewrite my > urls.py to accept ^x/admin instead of ^admin (which is bad and breaks > portability). Is there a way that I can use mod_python to > proxyhttp://foo.bar.com/x/admin/to Django as /admin/ while still remembering > which Django project it's running? > > Thanks, > charles --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---