Implement custom logging email backend for development: log outgoing emails to Loguru and stdout
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user