Skip to content

Commit

Permalink
Switched to mailjet
Browse files Browse the repository at this point in the history
  • Loading branch information
srugano committed Nov 28, 2023
1 parent 49769ab commit 9c2d6d9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
33 changes: 32 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pygments = "^2.14.0"
soupsieve = "^2.4"
pyquery = "^2.0.0"
beautifulsoup4 = "^4.12.0"
django-anymail = {extras = ["mailjet"], version = "^10.2"}

[tool.poetry.dev-dependencies]
black = "^22.1.0"
Expand Down Expand Up @@ -127,7 +128,7 @@ include_trailing_comma = true
known_django = "django"
known_typing = ["typing"]
known_tests = ["unittest", "pytest"]
known_app = "hope_country_report"
known_app = "aurora"
sections = ["FUTURE", 'TYPING', 'STDLIB',"TESTS",'DJANGO','THIRDPARTY','APP','LOCALFOLDER']
multi_line_output = 3
line_length = 120
Expand Down
2 changes: 1 addition & 1 deletion src/aurora/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def parse_emails(value):
"DEBUG": (bool, False),
"DEBUG_PROPAGATE_EXCEPTIONS": (bool, False),
"DJANGO_ADMIN_TITLE": (str, "Aurora"),
"EMAIL_BACKEND": (str, "django.core.mail.backends.smtp.EmailBackend"),
"EMAIL_BACKEND": (str, "anymail.backends.mailjet.EmailBackend"),
# "EMAIL_FROM_EMAIL": (str, ""),
# "EMAIL_HOST": (str, ""),
# "EMAIL_HOST_PASSWORD": (str, ""),
Expand Down
5 changes: 5 additions & 0 deletions src/aurora/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"simplemathcaptcha",
"dbtemplates",
"admin_sync",
"anymail",
# ---
"aurora.apps.Config",
"aurora.flatpages.apps.Config",
Expand Down Expand Up @@ -847,3 +848,7 @@ def show_ddt(request): # pragma: no-cover

MATOMO_SITE = env("MATOMO_SITE", default="https://unisitetracker.unicef.io/")
MATOMO_ID = env("MATOMO_ID", default="N/A")
ANYMAIL = {
"MAILJET_API_KEY": env("MAILJET_API_KEY"),
"MAILJET_SECRET_KEY": env("MAILJET_SECRET_KEY")
}

0 comments on commit 9c2d6d9

Please sign in to comment.