Opened 9 years ago

Last modified 9 years ago

#24360 closed Bug

when LocaleMiddleware activated, no error page with traceback and error message in logger — at Version 1

Reported by: mishust Owned by: nobody
Component: Core (Other) Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by mishust)

Steps to reproduce:

  1. include in MIDDLEWARE_CLASSES

'django.middleware.locale.LocaleMiddleware',

  1. Make error in code (for example addind 'f' symbol)

urlpatterns = patterns(,
f
url(r'admin/', include(admin.site.urls)),

  1. 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.

Change History (1)

comment:1 by mishust, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top