Worked in full.html into Notifications application
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django notifications 0.1.4 has the basic plumbing to send HTML emails with the full.html template that can be over-ridden, but it isn't being used at the moment and doesn't appear to be in 0.1.5 either.
Although the html_mailer app is in alpha (http://recurser.com/code/p/django-html-mailer/), it works like a dream and allows the sending of plain-text and HTML emails. I've basically amended the notification send_now method to include an HTML version if the app is installed. Otherwise, just send the notification as normal.
I've attached my amended models.py file. It does also require the presence of an email_body.html file that is used for rendering the notice's full.html, so I've included a basic HTML version of email_body.txt. It'd be great to see this in and I think this completes the functionality hinted at with full.html.
Change History (4)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|