django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Add urlconf param to HttpRequest

Open bigfootjon opened this issue 1 year ago • 3 comments

I have made things!

Ref the docs: https://docs.djangoproject.com/en/5.0/topics/http/urls/#how-django-processes-a-request

Django determines the root URLconf module to use. Ordinarily, this is the value of the ROOT_URLCONF setting, but if the incoming HttpRequest object has a urlconf attribute (set by middleware), its value will be used in place of the ROOT_URLCONF setting.

Related issues

N/A

bigfootjon avatar Jun 26 '24 21:06 bigfootjon