- SQLLogMiddleware. This logs any INSERT or UPDATE performed by a request. - SMTPExceptionMiddleware. This renders a "please try again" (template email_failed.html) message when an attempt to send email failed. This uses a bit of a hack, in that the middleware looks explicitly for smtplib.SMTPException, and smtplib can raise other exceptions (particularly socket errors). utils/mail/send_smtp catches all exceptions and reraises non-smtplib exceptions as fake smtplib exceptions, and the middleware undoes the wrapping. - Legacy-Id: 224 |
||
---|---|---|
ietf | ||
test | ||
.gitignore |