【发布时间】:2015-11-19 01:13:14
【问题描述】:
在 pinax 项目中,如何配置变量(如 {{ current_site }}、{{ email_url }}、{{ activate_url }} 等)以适应 django-user-accounts、pinax 应用?
例如,当我配置我的 settings.py 并设置时
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = True
现在,当我创建一个新用户时,我会收到消息
Confirm your email address
We have sent you an email to e@e.com for verification.
Follow the link provided to finalize the signup process.
If you do not receive it within a few minutes, contact us
at support@example.com
所以我的问题是,这些 Django 变量在哪里?如何更改它们以将 support@example.com 更改为所需的电子邮件地址?
【问题讨论】:
-
我从未使用过 pinax,但快速谷歌搜索显示自定义该变量取决于您使用的主题。看看github.com/pinax/pinax-theme-classic/blob/master/…和github.com/pinax/pinax-theme-bootstrap-account/blob/master/…