Opened 19 years ago
Closed 18 years ago
#1514 closed defect (duplicate)
No way to allow exceptions to raise out of Django
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | ianb@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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.
duplicate of #3452