misago settings

  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:
    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"

你可能感兴趣的:(misago settings)