Satchmo 的联系表 不要发送电子邮件

发布于 2024-12-25 14:15:12 字数 188 浏览 6 评论 0原文

我是第一次使用 satchmo shop 的新手。这也是我关于堆栈的第一个问题。到目前为止,除了我热切希望为我工作的两件事之外,我已经能够相当好地管理定制。

  1. 当尝试通过联系表单发送电子邮件时,电子邮件未发送?
  2. 任何人都可以给我一个工作设置的指针/指南,以便为我的新商店测试和运行 django 注册吗?

I am a newbie using satchmo shop for the first time. This is my first ever question with stack too. So far I have been able to manage the customization to a reasonably well except the 2 things that I am eagerly looking to work for me.

  1. When try to send an email through Contact form, emails are not sent??
  2. Can anyone give me pointer/guide for a working setting in order to test and run django-registration for my new shop??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感性 2025-01-01 14:15:13

如果电子邮件设置有问题,请尝试这个,

EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_PORT = 587 
EMAIL_HOST_USER = '[email protected]' 
EMAIL_HOST_PASSWORD = 'password' 
EMAIL_USE_TLS = True

这对我有用!

if there is problem in email settings then try this one,

EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_PORT = 587 
EMAIL_HOST_USER = '[email protected]' 
EMAIL_HOST_PASSWORD = 'password' 
EMAIL_USE_TLS = True

this works for me!

旧伤慢歌 2025-01-01 14:15:13

好吧,我想这些步骤会有所帮助:

  • 确保您在 settings.py 上的 INSTALLED_APPS 上进行了“注册”
  • 您必须将 LIVESETTINGS_OPTIONS 设置为。这可以通过管理中的 Livesettings-app 来完成,而不是在 Pruduction 上。之后,您应该确保将“DB”选项关闭,并将“DB”选项设置为 False,并在 settings.py 上“硬编码”您的实时设置(请参阅 live_settings 文档)。例如:

    LIVESETTINGS_OPTIONS = { 1: {
        “DB”:错误,
        '设置': { ...
    

    ...如果您愿意并且您已经知道要设置哪些设置,您也可以直接在 settings.py 上进行设置。这当然是快一点点。但不要尝试对它们进行硬编码,如果“DB”为 True,也请在管理员上更改它们,因为管理员可能会覆盖您的硬编码,从而导致模糊、错误的情况:-)

    与注册相关的实时设置:

    LIVESETTINGS_OPTIONS = { 1: {
        “DB”:错误,
        '设置': {
         ...
            你'商店':{
                u'ACCOUNT_VERIFICATION':u'EMAIL',
                u'ACCOUNT_ACTIVATION_DAYS':u'7',
            ...
            }
        ...
        }
    }}
    

Well, I guess this steps would help:

  • make sure you have 'registration' on your INSTALLED_APPS on the settings.py
  • you must set the LIVESETTINGS_OPTIONS to. This can be done from the Livesettings-app in the Admin while not on Pruduction. Afterwards you should make sure you turn them off with the 'DB'-option turned to False and "hardcoding" your live-settings on settings.py (see live_settings docs). For example:

    LIVESETTINGS_OPTIONS = { 1: {
        'DB': False,
        'SETTINGS': { ...
    

    ... if you wish and you already know which settings you want to set, you can can set them directly on settings.py too. That's of course a little bit faster. But don't try to hard-code them and if 'DB' is True, change them too on the admin, as probalby the admin-ones would override your hardcoded ones, leading to obscure, buggy situations :-)

    The live-settings relevant for the registration:

    LIVESETTINGS_OPTIONS = { 1: {
        'DB': False,
        'SETTINGS': {
         ...
            u'SHOP': {
                u'ACCOUNT_VERIFICATION': u'EMAIL',
                u'ACCOUNT_ACTIVATION_DAYS': u'7',
            ...
            }
        ...
        }
    }}
    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文