修复若干bug,优化若干代码

This commit is contained in:
ladeng07
2022-05-15 01:31:26 +08:00
parent bd36d90a3b
commit f65714f84e
26 changed files with 417 additions and 212 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def send_code_email(email):
email_title = "注册激活"
# file = open("/email_body")
file = open(os.path.join(BASE_DIR, "enroll", "email_body"))
email_body = str(file.read).format(code)
email_body = str(file.read()).format(code)
# 发送邮件
send_status = send_mail(email_title, email_body, settings.EMAIL_FROM, [email])
if not send_status: