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/f5ff3d06-6a12-42f1-aae8-b260e71256f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to