Questions tagged «django-mailer»

7
RuntimeWarning:DateTimeField收到一个简单的日期时间
我正在尝试使用IPython发送简单的邮件。我尚未设置任何仍然出现此错误的模型。该怎么办? 错误:/home/sourabh/Django/learn/local/lib/python2.7/site-packages/django/db/models/fields/ init .py:827:RuntimeWarning:DateTimeField收到的是原始日期时间(2013-09-04 14:14:13.698105),时区支持处于活动状态。运行时警告) 已尝试:第一步是添加USE_TZ = True到您的设置文件并安装pytz(如果可能)。 错误已更改: (learn)sourabh@sL:~/Django/learn/event$ python manage.py shell /home/sourabh/Django/learn/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py:53: RuntimeWarning: SQLite received a naive datetime (2013-09-05 00:59:32.181872) while time zone support is active. RuntimeWarning)

12
使用Django创建电子邮件模板
我想使用Django模板发送HTML电子邮件,如下所示: <html> <body> hello <strong>{{username}}</strong> your account activated. <img src="mysite.com/logo.gif" /> </body> 我找不到任何有关的信息send_mail,并且django-mailer仅发送HTML模板,而没有动态数据。 如何使用Django的模板引擎生成电子邮件?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.