On 7/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Haven't worked out exactly how to acommodate things like mod_python not
> giving the full SCRIPT_NAME yet, but it's a relatively minor issue since
> it's just a fact of life we need to work around. Something will present
> itself.
I'm not sure I've got much to add to this discussion that I didn't
tell Malcolm in person, but I do have one idea worth tossing out
there. Back in the dark ages of Django-as-internal-project, we didn't
have the concept of URL inclusion. Each top-level bit had its own
location block in Apache; something like::
<Location /news/>
PythonOption urlconf news.urls
PythonOption urlroot /news/
</Location>
Repeat for each top level path component... we've come a long way,
baby. We threw this whole thing out when we figured out the inclusion
mechanism, but the url-root-as-PythonOption bit isn't such a bad idea.
People using mod-python < 3.3.1 could use the PythonOption and kill it
once they upgrade.
Not a brilliant idea, to be sure, but now someone *else* has to come
up with something better :)
Jacob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---