This fix first checks if the resolver is `None` before calling
`resolve()`, and avoids the call entirely if we have already resolved.
{{{
caller = ''
if resolver_match is None:
try:
resolver_match = resolve(request.path)
except Http404:
pass
if resolver_match is not None:
caller = resolver_match._func_path
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33433>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Hrushikesh Vaidya
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33433#comment:1>
Comment (by Hrushikesh Vaidya):
[https://github.com/django/django/pull/15305 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33433#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33433#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"18a15bbc9c7df19fe38f252bcd62d5a3811e3451" 18a15bbc]:
{{{
#!CommitTicketReference repository=""
revision="18a15bbc9c7df19fe38f252bcd62d5a3811e3451"
Fixed #33433 -- Avoided unnecessary resolve() calls in
technical_404_response().
Thanks Keryn Knight for the initial patch.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33433#comment:4>