开发者

Currently, in Django-notification, everytime I send a notification, it sends the email in plain text

Is there a way to customize the HTML a开发者_如何学Cnd send a notification email in html?


Just adjust your template, e.g.

  • https://github.com/pinax/django-notification/blob/master/notification/templates/notification/email_body.txt

or add an extra template, e.g. email_body.html. For that you'll have to adjust models.py starting, e.g. here:

  • https://github.com/pinax/django-notification/blob/master/notification/models.py#L311
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜