There's an open ticket. Perhaps you would like to finish the patch.

https://code.djangoproject.com/ticket/28766
https://github.com/django/django/pull/9323

On Tuesday, July 10, 2018 at 2:16:01 PM UTC-4, Melvyn Sopacua wrote:
>
> Hi,
>
>  
>
> I'm trying to implement a wrapper for Django's request to work with 
> openapi-core <https://github.com/p1c2u/openapi-core>. In this endavour I 
> discovered that obtaining the pattern that matched with the current URL is 
> not stored on ResolverMatch and I don't see any other way to obtain it from 
> a Django HttpRequest.
>
>  
>
> I'm apparently not alone in this 
> <https://stackoverflow.com/questions/18653278/django-get-url-regex-by-name>. 
> And I'm wondering why it's not stored. I basically would have to setup a 
> local url pattern cache tied to view name and resolve it again.
>
>  
>
> Is there a reason it's not stored on the resolver match?
>
> -- 
>
> Melvyn Sopacua
>

-- 
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/a87f2b43-b9c0-403a-8044-48c00f9c11f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to