From 057821303f6e0d07643d0dcc5d2801c1b10bf89f Mon Sep 17 00:00:00 2001 From: Nate Aune Date: Thu, 26 Sep 2013 13:22:41 -0400 Subject: [PATCH] Use the console.EmailBackend to avoid error: [Errno 61] Connection refused when trying to send email to a non-existent local SMTP server --- .../{{cookiecutter.repo_name}}/config/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index fda8b6d7..78722575 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -257,8 +257,7 @@ class Local(Common): ########## END INSTALLED_APPS ########## Mail settings - EMAIL_HOST = "localhost" - EMAIL_PORT = 1025 + EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' ########## End mail settings ########## django-debug-toolbar