Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Olga-Zholudeva committed Aug 31, 2023
1 parent 66050f2 commit 17928ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/core/mailing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 17928ee

Please sign in to comment.