#24360: when LocaleMiddleware activated, no error page with traceback and error
message in logger
-------------------------------+--------------------------------------
Reporter: mishust | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by mishust):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> Steps to reproduce:
> 1. include in MIDDLEWARE_CLASSES
> 'django.middleware.locale.LocaleMiddleware',
> 2. Make error in code (for example addind 'f' symbol)
>
> urlpatterns = patterns('',
> f
> url(r'^admin/', include(admin.site.urls)),
> 3. Open root page http://mysite/
>
> Result: "A server error occurred. Please contact the administrator."
> HTML page
> and Traceback on concole output
>
> Expected result: with Debug=True expecting to see HTML error page with
> Traceback and detailed info.
>
> Also, error message dont appear in python logger - in files, not send to
> ADMIN emails.
New description:
Steps to reproduce:
1. include in MIDDLEWARE_CLASSES
'django.middleware.locale.LocaleMiddleware',
2. Make error in code (for example addind 'f' symbol)
urlpatterns = patterns('',
f
url(r'^admin/', include(admin.site.urls)),
3. Open root page http://mysite/
Result: "A server error occurred. Please contact the administrator." HTML
page
and Traceback on concole output
Expected result: with Debug=True expecting to see HTML error page with
Traceback and detailed info.
Also, error message dont appear in python logger - in files, not send to
ADMIN emails.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/24360#comment:1>
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.92b341b67850a80972df97a253efef97%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.