【发布时间】:2013-09-20 00:13:03
【问题描述】:
好的,我对 GAE 样板的资源缺乏感到沮丧,特别是因为它的目录结构有点复杂,所以我来这里。
无论如何,我有这个联系表格,我改编自模板提供的contact.html 模板。我对向访问者提供用户注册不感兴趣,我只想要一个非常简单的联系表单,其中包含 Full name、Email address 和 Message。据我所知,表单本身正在工作,因为我没有更改样板中的 任何 代码:
<form id="form_contact" action="{{ url|safe }}" method="post" class="well form-horizontal">
<fieldset>
<input type="hidden" name="exception" value="{{ exception|e }}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
{{ macros.field(form.name, label=_("Name"), placeholder=_("Enter your")+" "+_("Name"), class="input-xlarge focused required") }}
{{ macros.field(form.email, label=_("Email"), placeholder=_("Enter your")+" "+_("Email"), class="input-xlarge focused required email", type="email") }}
{{ macros.field(form.message, label=_("Message"), class="input-xlarge required", cols="40", rows="8") }}
<div class="form-actions">
<button type="submit" class="btn btn-primary">{% trans %}Send Message{% endtrans %}</button>
</div>
</fieldset>
</form>
我遇到的问题是我无法将电子邮件发送到我想要的电子邮件地址。我可以告诉我要更改的唯一文件是d*******@gmail.com 文件,我尝试更改此文件:
# contact page email settings
'contact_sender': "l*******@gmail.com",
'contact_recipient': "d*******@gmail.com",
从line 24 开始,以line 26 结束,但没有运气。我应该更改另一个配置文件吗?顺便说一句,我更改的config.py文件的确切目录是C:\Users\*****\Desktop\Projects\******\boilerplate\config.py
【问题讨论】:
标签: python html google-app-engine email contact