You can set `urlconf`(plain string - path to the needed urlconf) attribute to request object that is passed into `process_request`. Then django will use it not default.
On Jun 6, 8:42 pm, Siah <[EMAIL PROTECTED]> wrote: > Hi, > > I need to select different urlpatterns in my middleware's > process_request hook. The docs say, process_request is called -before- > the appropriate view is selected, which should mean there must be a > way for me to tell django to use a different urlpatterns. I checked on > CommonMiddleware that does a bit of url-rewriting and found it does a > HttpResponsePermenentRedirect and not change the actual url in place > which seems odd to me as I expected the middleware to rewrite the URL > in place. > > Thanks for all the help and your super framework, > Sia --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---