diff --git a/src/config/settings.py b/src/config/settings.py index 562ee1a..e2647db 100644 --- a/src/config/settings.py +++ b/src/config/settings.py @@ -113,6 +113,7 @@ EMAIL_BACKEND = env.str( "EMAIL_BACKEND", default="django.core.mail.backends.console.EmailBackend" ) +EMAIL_TEMPLATE_NAME = "email.html" EMAIL_HOST = env.str("EMAIL_HOST") try: EMAIL_PORT = env.int("EMAIL_PORT") diff --git a/src/core/mailing.py b/src/core/mailing.py index 6071573..31110fe 100644 --- a/src/core/mailing.py +++ b/src/core/mailing.py @@ -2,10 +2,10 @@ from typing import Sequence from asgiref.sync import sync_to_async -from django.conf import settings from django.core.mail import EmailMultiAlternatives from django.template.loader import get_template +from config import settings from core.validators import MailValidator logger = logging.getLogger("core")