Configure email backend for local development and update NGINX HTTPS port in environment settings

This commit is contained in:
Ross
2025-12-15 12:44:57 +00:00
parent 00b736d8d6
commit 03b23b9178
3 changed files with 8 additions and 5 deletions
+3
View File
@@ -21,3 +21,6 @@ GUNICORN_LOGLEVEL=info
NGINX_HTTP_PORT=8080
# Pick a non-privileged HTTPS port to avoid conflicts with host installs
NGINX_HTTPS_PORT=8444
# Use console email backend for local development to avoid sending real mail
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
+1 -1
View File
@@ -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 = (