Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yaozeliang authored May 2, 2020
1 parent 08449b9 commit 8061a2a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions my_blog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'c20s(vym*s_ne845ek_o5e$jm=x*pgq6=@-ry@6(=23mv(k2w='
SECRET_KEY = '*'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
Expand Down Expand Up @@ -175,17 +175,16 @@


# SMTP服务器,改为你的邮箱的smtp!
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST = *
# 改为你自己的邮箱名!
EMAIL_HOST_USER = '[email protected]'
# 你的邮箱密码
EMAIL_HOST_PASSWORD = '147258369Qwert#'
EMAIL_HOST_USER = *
EMAIL_HOST_PASSWORD = *
# 发送邮件的端口
EMAIL_PORT = 587
EMAIL_PORT = *
# 是否使用 TLS
EMAIL_USE_TLS = True
# 默认的发件人
DEFAULT_FROM_EMAIL = 'YAO ZELIANG blog [email protected]'
DEFAULT_FROM_EMAIL = *



Expand Down Expand Up @@ -245,4 +244,4 @@
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # new
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

0 comments on commit 8061a2a

Please sign in to comment.