From 6350db1b4f6223f64ccc3949e32ae29a652c74d8 Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Wed, 26 Jun 2024 14:10:38 -0700 Subject: [PATCH] Add urlconf param to HttpRequest 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. --- django-stubs/http/request.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/http/request.pyi b/django-stubs/http/request.pyi index 21e58ed54..4a4cd4557 100644 --- a/django-stubs/http/request.pyi +++ b/django-stubs/http/request.pyi @@ -49,6 +49,7 @@ class HttpRequest(BytesIO): resolver_match: ResolverMatch | None content_type: str | None content_params: dict[str, str] | None + urlconf: str | None _body: bytes _stream: BinaryIO # Attributes added by optional parts of Django