Changeset 7537
- Timestamp:
- 05/16/08 18:24:36 (2 months ago)
- Files:
-
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/django/core/handlers/base.py (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/global_settings.py
r7401 r7537 12 12 DEBUG = False 13 13 TEMPLATE_DEBUG = False 14 # True if BaseHandler.get_response() should propagate raw exceptions 15 # rather than catching them. This is useful under some testing siutations, 16 # and should never be used on a live site. 17 DEBUG_PROPAGATE_EXCEPTIONS = False 14 18 15 19 # Whether to use the "Etag" header. This saves bandwidth but slows down performance. django/trunk/django/core/handlers/base.py
r7168 r7537 116 116 exc_info = sys.exc_info() 117 117 receivers = dispatcher.send(signal=signals.got_request_exception, request=request) 118 if settings.DEBUG: 118 119 if settings.DEBUG_PROPAGATE_EXCEPTIONS: 120 raise 121 elif settings.DEBUG: 119 122 from django.views import debug 120 123 return debug.technical_500_response(request, *exc_info) django/trunk/docs/settings.txt
r7364 r7537 391 391 the like all give attackers extra information about your server. Never deploy a 392 392 site with ``DEBUG`` turned on. 393 394 DEBUG_PROPAGATE_EXCEPTIONS 395 -------------------- 396 397 Default: ``False`` 398 399 If set to True, Django's normal exception handling of view functions 400 will be suppressed, and exceptions will propagate upwards. This can 401 be useful for some test setups, and should never be used on a live 402 site. 393 403 394 404 DEFAULT_CHARSET
