Dynamic Django Mail Configuration

后端 未结 4 1050
礼貌的吻别
礼貌的吻别 2020-12-17 21:20

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 = model         


        
4条回答
  •  长情又很酷
    2020-12-17 22:04

    You should create an object from EmailBackend:

    I have been an answer in the previous stack overflow post.

提交回复
热议问题