2013-04-21 47 views
0

the documentation on django-mailer,使用Django的邮件我所有的电子邮件,我只是需要把这个settings.py:Django的邮件进口

EMAIL_BACKEND = "mailer.backend.DbBackend" 

,我做到了。

但我得到这个错误,当我真正尝试使用django-templated-email送我的电子邮件:

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

我怎样才能解决这个问题?

编辑

看起来确实是有邮件包装盒里面没有“后台”模块。这是否意味着文档不正确?我现在应该怎么做;找到另一个包使用?

nothing

+0

实际上,'mailer'包中有'backend.py'文件,请参阅[github repo](https://github.com/pinax/django-mailer/tree/master/mailer)。尝试直接从github重新安装'django-mailer'。 – alecxe 2013-04-21 09:19:34

+0

@AlexanderAfanasiev重新安装并没有帮助,但我直接从GitHub存储库安装,并最终修复它。如果你把它作为一个整体,我会接受你的答案。 – wrongusername 2013-04-24 08:02:31

+0

好的,完成了,谢谢。 – alecxe 2013-04-24 08:05:49

回答

1

其实,有backend.py文件中的邮件包装盒,看到github repo。尝试直接从github重新安装django-mailer