On Tue, Jul 10, 2007 at 09:40:49PM -0000, [EMAIL PROTECTED] wrote: > On Jul 10, 5:02 pm, Forest Bond <[EMAIL PROTECTED]> wrote: > > Is this kind of change relevant for all of the other methods? I have not > > used > > any of the others. Certainly, if a change like this is made, the other > > handlers > > would need to be updated for consistency. I agree with you there. > > > > If there was some way to tell apache/mod_python to pass the URL sans the > > prefix > > in to django, I would simply do that. I have not been able to find any such > > thing. > > > > But really, the prefix is a deployment detail that I should be able to make > > my > > application agnostic to. I don't have to include my domain name in my > > urls.py, > > why should I have to include a prefix? > > > > Maybe this behavior could be determined by something in settings.py. > > > > -Forest > > > > signature.asc > > 1KDownload > > Your applications should be root url agnostic. Each app should have > its own urls.py and the root site urls.py (and its accompanying > settings.py) should have the site specific information including the > root. Then the apps are included in the site specific root urls.py
Pardon me for mis-speaking. I meant that I felt my site-specific urls.py should be root URL agnostic. Actually, I am pushing for that URL prefix to only be mentioned in the apache config. While I appreciate your assistance in helping me do things how you would do them, I am really hoping someone can answer my question: why use req.uri instead of req.path_info? Is there a good reason? > You might want to check out this thread for more information: > http://groups.google.com/group/django-developers/browse_thread/thread/e9d92bceab679f6a/# A quick scan of that thread doesn't turn up much relevant info. What am I looking for there? > Here is an example of having the root urls.py get its bases from > settings.py (though not a very good one): > https://svn.python.org/conference/django/trunk/pycon/urls.py Thanks; I won't be needing further assistance with Python, however. -Forest
signature.asc
Description: Digital signature
