Commit 79c02f96 by rongjun

init

parent 2c2ce52a
......@@ -80,6 +80,7 @@ def cta(timestamp, last_price, task):
TaskNotify.objects.create(task_id=task.get('id'), point=point_val)
if over:
Task.remove_task(task)
print(type(task.get('emails')))
send(title, content, task.get('emails'))
except IntegrityError:
pass
......
......@@ -254,12 +254,12 @@ REST_FRAMEWORK = {
# ==========
# = Email =
# ==========
EMAIL_HOST = 'smtp.exmail.qq.com'
EMAIL_PORT = 465
EMAIL_HOST = 'smtp.qq.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'notify@huxiapp.com'
EMAIL_HOST_PASSWORD = 'HuXiJianr3n'
# EMAIL_USE_TLS = True
EMAIL_USE_SSL = True
EMAIL_USE_TLS = True
# EMAIL_USE_SSL = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Q_CLUSTER = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment