I don't want to use email configuration fields in setting.py, i want to put them in to a model.
class Configuration(models.Model):
email_use_tls = models.BooleanField(_(u'EMAIL_USE_TLS'),default=True)
email_host = models.CharField(_(u'EMAIL_HOST'),max_length=1024)
email_host_user = models.CharField(_(u'EMAIL_HOST_USER'),max_length=255)
email_host_password = models.CharField(_(u'EMAIL_HOST_PASSWORD'),max_length=255)
email_port = models.PositiveSmallIntegerField(_(u'EMAIL_PORT'),default=587)
....
What is the best practice to configure django.core.mail.send_mail behaviour? Should i copy send_mail code to my project? Thats not what i want.