Hi Doug, Forest, Can't do experiments now, but my admin interface (django trunk) began to work right after this middleware addition, that meant reverse url were resolved somehow. Snippet exactly change req.uri to req.script_name+req.uri, that gives req.path. Am I right? If I'm not, you can change it to set request.path to what you need. Snippet change will be absolutely transparent if request.path is not cached in some variable.
Second, I feel req.path_info wouldn't help you, and you guys apparently need something like this anyway: SERVER_PREFIX = '/prefix' # or os.environ('SOME_MOD_PYTHON_VAR') ROOT_URLCONF = 'urlconf' PREFIXED_URLCONF = 'urlconf2' in ROOT_URLCONF: urlpatterns = patterns('', ('^'+SERVER_PREFIX, include(PREFIXED_URLCONF)) Please correct me if I misunderstood something. 2007/7/12, Forest Bond <[EMAIL PROTECTED]>: > On Wed, Jul 11, 2007 at 09:27:43PM -0000, [EMAIL PROTECTED] wrote: > > > > This snippit replaces the request.path. My question is, how does this > > work with sitemap, absolute rul's and reverse url lookups? doesn't it > > break all of those, or am I missing something? > > More importantly (for me), this snippeet has no chance of solving my problem > :) > > -Forest > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFGlXNSRO4fQQdv5AwRAobkAKDKQp7pT4LxMAtc3WztwGRQ68pDLgCglc38 > Obe9eiSeRceYWS7GNEXqIxc= > =gRcE > -----END PGP SIGNATURE----- > > -- Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov, MSN: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---