Add local mail config

This commit is contained in:
Jannis Portmann 2023-04-01 00:07:00 +02:00
parent 33798dd299
commit 6adabac266

View file

@ -132,3 +132,12 @@ MEDIA_URL = "media/"
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
CRISPY_TEMPLATE_PACK = 'bootstrap5'
if DEBUG:
# Mailhog configuration
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = '0.0.0.0'
EMAIL_PORT = 1025
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False