瀏覽代碼

add DEFAULT_FROM_EMAIL env variable

pull/342/head
Guillaume Vincent 8 年之前
父節點
當前提交
4a50d90d96
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      lesspass/settings.py

+ 1
- 0
lesspass/settings.py 查看文件

@@ -183,6 +183,7 @@ if DEBUG:
EMAIL_BACKEND = os.getenv('EMAIL_BACKEND', 'django.core.mail.backends.console.EmailBackend')
else:
EMAIL_BACKEND = os.getenv('EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend')
DEFAULT_FROM_EMAIL = os.getenv('DEFAULT_FROM_EMAIL', 'contact@lesspass.com')
EMAIL_HOST = os.getenv('EMAIL_HOST', 'localhost')
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD', '')


Loading…
取消
儲存