misago设置

1. 设置为中文和时区:

[root@localhost misagoforumorg]# pwd

/root/misagoforumorg/misagoforumorg

[root@localhost misagoforumorg]#  vi settings

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/Shanghai'

2. 配置邮件功能:

默认情况下,注册用户,会发送一封邮件给用户邮箱,所以需要先设置好邮箱功能

Option1:  配置邮件信息打印到本地(不网络发送)

[root@localhost misagoforumorg]# pwd

/root/misagoforumorg/misagoforumorg

[root@localhost misagoforumorg]# vi settings.py

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

Option2: 网络发送

O2.1)QQ邮箱设置

登陆QQ邮箱 ---》邮箱设置 --》账号 --》开启服务:

POP3/SMTP服务 --》生成授权码


misago设置_第1张图片
misago设置_第2张图片

O2.2)在misago端设置

把下面6行加入settings.py

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_USE_SSL = True

EMAIL_HOST = 'smtp.qq.com'

EMAIL_PORT = 465

EMAIL_HOST_USER = "33******@qq.com"

EMAIL_HOST_PASSWORD = "ftelgqweazcebifd"

DEFAULT_FROM_EMAIL = 'Forums <%s>' % EMAIL_HOST_USER

====>上面设置完毕后,经实测,再注册时,注册邮箱会收到一封邮件

to be modifylist:


 oscar\templates\oscar\dashboard\layout.html:

{# We don't use a fallback for tinyMCE as it dynamically loads several other files #}

{#


__AA__

你可能感兴趣的:(misago设置)