-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08449b9
commit 8061a2a
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 = * | ||
|
||
|
||
|
||
|
@@ -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' |