2012-09-25 04:11:42 +08:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from django.conf import settings
|
2012-11-20 01:57:40 +08:00
|
|
|
from django.core.mail.backends.base import BaseEmailBackend
|
|
|
|
|
2012-09-25 04:11:42 +08:00
|
|
|
|
|
|
|
class MyHandler(logging.Handler):
|
2012-09-25 04:42:58 +08:00
|
|
|
def __init__(self):
|
|
|
|
logging.Handler.__init__(self)
|
2012-09-25 04:11:42 +08:00
|
|
|
self.config = settings.LOGGING
|
2012-11-20 01:57:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
class MyEmailBackend(BaseEmailBackend):
|
|
|
|
def send_messages(self, email_messages):
|
|
|
|
pass
|