We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02bbebf commit 34bc178Copy full SHA for 34bc178
2 files changed
src/core/config.py
@@ -81,8 +81,8 @@ def CELERY_RESULT_BACKEND(self):
81
EMAIL_FROM: str = "admin@example.com"
82
SMTP_HOST: str = "smtp.gmail.com"
83
SMTP_PORT: int = 587
84
- SMTP_USER: str | None = None
85
- SMTP_PASSWORD: str | None = None
+ SMTP_USER: str = "test@example.com"
+ SMTP_PASSWORD: str = "testpassword"
86
SMTP_TLS: bool = True
87
88
# Social Auth
src/core/email.py
@@ -4,8 +4,6 @@
4
from core.config import settings
5
6
# Валидация, чтобы не было None
7
-if not settings.SMTP_USER or not settings.SMTP_PASSWORD:
8
- raise ValueError("SMTP_USER and SMTP_PASSWORD must be set in environment")
9
10
conf = ConnectionConfig(
11
MAIL_USERNAME=settings.SMTP_USER,
0 commit comments