|
|
@@ -196,13 +196,9 @@ WECHAT = {
|
196
|
196
|
},
|
197
|
197
|
}
|
198
|
198
|
|
199
|
|
-# 邮件设置
|
200
|
|
-# https://docs.djangoproject.com/en/1.11/howto/error-reporting/#email-reports
|
201
|
|
-# When DEBUG is False, Django will email the users listed in the ADMINS setting
|
202
|
|
-# whenever your code raises an unhandled exception and results in an internal server error (HTTP status code 500).
|
203
|
|
-# 只有当 DEBUG = False 的时候,才会邮件发送报错信息
|
|
199
|
+# 错误信息邮件设置
|
204
|
200
|
# Email address that error messages come from.
|
205
|
|
-SERVER_EMAIL = 'error.notify@exmail.com'
|
|
201
|
+SERVER_EMAIL = 'kimi@pai.ai'
|
206
|
202
|
# The email backend to use. For possible shortcuts see django.core.mail.
|
207
|
203
|
# The default is to use the SMTP backend.
|
208
|
204
|
# Third-party backends can be specified by providing a Python path
|
|
|
@@ -213,7 +209,7 @@ EMAIL_HOST = 'smtp.exmail.qq.com'
|
213
|
209
|
# Port for sending email.
|
214
|
210
|
EMAIL_PORT = 25
|
215
|
211
|
# Optional SMTP authentication information for EMAIL_HOST.
|
216
|
|
-EMAIL_HOST_USER = 'error.notify@exmail.com'
|
|
212
|
+EMAIL_HOST_USER = 'kimi@pai.ai'
|
217
|
213
|
EMAIL_HOST_PASSWORD = '<^_^>pwd<^_^>'
|
218
|
214
|
EMAIL_USE_TLS = False
|
219
|
215
|
EMAIL_USE_SSL = False
|
|
|
@@ -222,16 +218,16 @@ EMAIL_SSL_KEYFILE = None
|
222
|
218
|
EMAIL_TIMEOUT = None
|
223
|
219
|
# Default email address to use for various automated correspondence from
|
224
|
220
|
# the site managers.
|
225
|
|
-DEFAULT_FROM_EMAIL = 'error.notify <error.notify@exmail.com>'
|
|
221
|
+DEFAULT_FROM_EMAIL = 'Kimi <kimi@pai.ai>'
|
226
|
222
|
# People who get code error notifications.
|
227
|
223
|
# In the format [('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com')]
|
228
|
|
-ADMINS = [('Zhang San', 'san.zhang@exmail.com'), ('Li Si', 'si.li@exmail.com')]
|
|
224
|
+ADMINS = [('Kimi', 'kimi@pai.ai')]
|
229
|
225
|
# Not-necessarily-technical managers of the site. They get broken link
|
230
|
226
|
# notifications and other various emails.
|
231
|
227
|
MANAGERS = ADMINS
|
232
|
228
|
# Subject-line prefix for email messages send with django.core.mail.mail_admins
|
233
|
229
|
# or ...mail_managers. Make sure to include the trailing space.
|
234
|
|
-EMAIL_SUBJECT_PREFIX = u'[Templet] '
|
|
230
|
+EMAIL_SUBJECT_PREFIX = u'[Manual] '
|
235
|
231
|
|
236
|
232
|
# Admin Settings
|
237
|
233
|
DISABLE_ACTION = False
|