Django

Code

Ticket #1514 (closed: duplicate)

Opened 3 years ago

Last modified 2 years ago

No way to allow exceptions to raise out of Django

Reported by: ianb@colorstudy.com Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: ianb@colorstudy.com Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In trunk, django.core.handlers.base, exceptions are captured and displayed. However, in testing environments it is preferable that the exception not be handled and simply raised (or, for example, a rollback and then the exception is re-raised). There's no way to get it to do this now.

This also allows Django to use Paste's exception handlers. Paste in particular indicates this by putting environ['paste.throw_errors']=True into the WSGI environment, and does this both when an exception handler is already installed, and in testing environments.

Attachments

Change History

02/15/07 16:00:17 changed by Michael Radziej <mir@noris.de>

  • status changed from new to closed.
  • resolution set to duplicate.

duplicate of #3452


Add/Change #1514 (No way to allow exceptions to raise out of Django)




Change Properties
Action