2024-04-28 05:43:58 发布
网友
我试图使用Django模板,但即使我使用了pip install,当我写下以下内容时:
from django.templated_email import send_templated_mail
我得到这个错误(我想使用这个模板:https://github.com/bradwhittington/django-templated-email):
如果有人知道如何解决这个问题,请告诉我如何解决(如果有一个很好的例子)
非常感谢
从此行中删除django.:
django.
问题是,在说明书中并没有说明您需要添加设置.py,在已安装的应用程序“模板化”电子邮件中
您应该像这样导入from templated_email import send_templated_mail,而不是from django.templated_email import send_templated_mail
from templated_email import send_templated_mail
从此行中删除
django.
:问题是,在说明书中并没有说明您需要添加设置.py,在已安装的应用程序“模板化”电子邮件中
您应该像这样导入
from templated_email import send_templated_mail
,而不是from django.templated_email import send_templated_mail
相关问题 更多 >
编程相关推荐