【问题标题】:Variables in django-user-accounts ( pinax )django-user-accounts 中的变量( pinax )
【发布时间】: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 更改为所需的电子邮件地址?

【问题讨论】:

标签: django pinax


【解决方案1】:

在你的 settings.py 中添加

THEME_CONTACT_EMAIL = 'desired@email.com'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-04
    • 2019-03-27
    • 2015-07-27
    • 2018-11-05
    • 1970-01-01
    • 1970-01-01
    • 2019-03-19
    • 1970-01-01
    相关资源
    最近更新 更多