Use console backend in development

This commit is contained in:
Gabriel Augendre 2022-10-31 17:11:15 +01:00
parent c5bfd77b34
commit 6be97b4088

View file

@ -218,3 +218,6 @@ ANYMAIL = {
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
DEFAULT_FROM_EMAIL = "charasheet@mg.augendre.info"
SERVER_EMAIL = "charasheet@mg.augendre.info"
if DEBUG:
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"