This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from django.conf import settings | |
from django.views import debug | |
from django.core.mail import EmailMultiAlternatives | |
from django.core import urlresolvers | |
from django import http | |
class HtmlEmailExceptionMiddleware(object): | |
''' | |
Middleware to email an html stacktrace and local variables like |