According to the documentation on django-mailer, to use django-mailer for all my emails, I just need to put this in settings.py:

EMAIL_BACKEND = "mailer.backend.DbBackend"

Which I did.

But I get this error when I actually try to use django-templated-email to send my emails:

ImproperlyConfigured: Error importing email backend module mailer.backend: "No module named backend"

How can I fix this?

EDIT:

Looks like there is indeed no "backend" module inside the mailer package. Does this mean the documentation is incorrect? What should I do now; find another package to use?

nothing

有帮助吗?

解决方案

Actually, there is backend.py file in the mailer package, see github repo. Try to reinstall django-mailer directly from github.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top