diff --git a/.env.dev b/.env.dev index e7717e1f..a458422d 100644 --- a/.env.dev +++ b/.env.dev @@ -20,4 +20,7 @@ GUNICORN_LOGLEVEL=info # Nginx host ports for local development (override prod defaults) NGINX_HTTP_PORT=8080 # Pick a non-privileged HTTPS port to avoid conflicts with host installs -NGINX_HTTPS_PORT=8444 \ No newline at end of file +NGINX_HTTPS_PORT=8444 + +# Use console email backend for local development to avoid sending real mail +EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend \ No newline at end of file diff --git a/generic/templates/generic/partials/cid_group_generate_preview.html b/generic/templates/generic/partials/cid_group_generate_preview.html index d0a98394..878473aa 100644 --- a/generic/templates/generic/partials/cid_group_generate_preview.html +++ b/generic/templates/generic/partials/cid_group_generate_preview.html @@ -7,9 +7,9 @@ NameEmail - {% for r in rows %} - {{ r.name }}{{ r.email }} - {% endfor %} + {% for r in rows %} + {{ r.name }}{{ r.email }} + {% endfor %} diff --git a/rad/settings.py b/rad/settings.py index 52b62e79..7c30c964 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -325,7 +325,7 @@ TINYMCE_DEFAULT_CONFIG = { DEFAULT_AUTO_FIELD = "django.db.models.AutoField" -EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" +EMAIL_BACKEND = os.environ.get("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend") # SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY') SENDGRID_API_KEY = (