mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import logging
 | 
						|
 | 
						|
from django.conf import settings
 | 
						|
from django.core.mail.backends.base import BaseEmailBackend
 | 
						|
 | 
						|
 | 
						|
class MyHandler(logging.Handler):
 | 
						|
    def __init__(self):
 | 
						|
        logging.Handler.__init__(self)
 | 
						|
        self.config = settings.LOGGING
 | 
						|
 | 
						|
 | 
						|
class MyEmailBackend(BaseEmailBackend):
 | 
						|
    def send_messages(self, email_messages):
 | 
						|
        pass
 |