Opened 10 years ago
Last modified 10 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 )
Steps to reproduce:
- include in MIDDLEWARE_CLASSES
'django.middleware.locale.LocaleMiddleware',
- Make error in code (for example addind 'f' symbol)
urlpatterns = patterns(,
f
url(r'admin/', include(admin.site.urls)),
- 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.
Note:
See TracTickets
for help on using tickets.