Implement custom logging email backend for development: log outgoing emails to Loguru and stdout

This commit is contained in:
Ross
2025-12-15 13:14:12 +00:00
parent 03b23b9178
commit c071f38920
4 changed files with 17 additions and 3 deletions
+6 -2
View File
@@ -22,5 +22,9 @@ 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
# Use Django's file-based email backend for local development so messages
# are written to files under the mounted `./logs/emails` directory and are
# easy to inspect on the host.
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
#EMAIL_BACKEND=django.core.mail.backends.filebased.EmailBackend
EMAIL_FILE_PATH=/var/log/rad/emails