I believe that's implemented as part of Marten's URL dispatcher work: 
https://github.com/django/django/pull/5578.

On Tuesday, June 14, 2016 at 8:20:59 AM UTC-4, Elephant Liu wrote:
>
> Hi all, I'd like to introduce a new feature to django urlresolver.
>
> Currently, django urlresolver can only handle the path_info field of 
> request object.
>
> code from django.core.handlers.base.BaseHandler.get_response
> callback, callback_args, callback_kwargs = resolver.resolve(request.
> path_info) 
>
> I'd like to pass the entire request object to urlresolver so that I 
> can implement more complex url resolving logic.
> For example:
> * base on path and http method
> * base on path and http header (such as User-Agent)
>
> I'd like to make a demo if you agree with my idea.
>
> At last, forgive my bad English.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/752bec82-b5e4-4527-8f47-2a41cfbcab7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to