#24360: when LocaleMiddleware activated, no error page with traceback and error
message in logger
------------------------------+------------------------------------
Reporter: mishust | Owner:
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by claudep):
* has_patch: 0 => 1
Comment:
The problem appears when a middleware fails in its `__init__` method. In
the `LocaleMiddleware` use case, it can easily be workarounded by
transforming `is_language_prefix_patterns_used` into a cached property,
like this:
https://github.com/django/django/pull/4224
--
Ticket URL: <https://code.djangoproject.com/ticket/24360#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.aafbd0036034cc42761119ca06b158fe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.