diff --git a/diary_family/settings.py b/diary_family/settings.py index 0488f2e..a4db640 100644 --- a/diary_family/settings.py +++ b/diary_family/settings.py @@ -170,3 +170,6 @@ TEMPLATES[0]['DIRS'] = [BASE_DIR / 'templates'] # Static files configuration STATICFILES_DIRS = [BASE_DIR / 'static'] STATIC_ROOT = BASE_DIR / 'staticfiles' + +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_PORT = 25 # 或根据你的 SMTP 服务器设置