On Jul 11, 6:25 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 7/10/07, Forest Bond <[EMAIL PROTECTED]> wrote: > > > All of this could be fixed by simply changing ModPythonRequest > > (django/core/handlers/modpython.py) to use req.path_info instead of > > req.uri. Is > > there any reason not to do that (aside from breaking backwards > > compatibility)? > > I'm certainly no expert in this area, but keep in mind thatmod_python > is just one available option for deploying Django. There would have to > be some equivalent in the other situations, such as FastCGI, in order > for this to be taken seriously. > > Above all, I think the intent here is consistency. It's hardly a Good > Idea to have one way to lay out your URLs formod_pythonand a > different one for the rest. I'm not saying it's impossible to do (I > don't know enough to say that), just that they all need to work the > same way. > > So ifmod_pythonends up being the only one that supports this, I'd be > very opposed to making changes for themod_pythoncase.
Django has problems in related areas with CGI and WSGI type hosting solutions as well. For example, mod_wsgi, FastCGI, SCGI, and CGI. This is because Django ignores SCRIPT_NAME variable which defines the mount point of the application. A well behaved WSGI application should not be ignoring it and should really allow URLs to be expressed relative to the mount point, thus making it easily relocatable. Where a full absolute URL is required, an application should be using SCRIPT_NAME in part of the calculations. I grumble a bit about the problems in: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango Referenced in there are a number of Django tickets which relate to the problem. http://code.djangoproject.com/ticket/285 http://code.djangoproject.com/ticket/2407 http://code.djangoproject.com/ticket/1516 Thus, not only mod_python is affected and since development server expects things to be mounted at root and this is only thing not possibly affected, would seem that no solution quite works as one would expect where not mounted at root. FWIW, I personally don't see using mod_rewrite hacks as a suitable solution. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
