From 3ac2b7cdbe9a24d8b2695d8874988fbaa1bd25c1 Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Wed, 28 Aug 2013 13:37:53 +0200 Subject: [PATCH] Fix environ not being defined --- .../{{cookiecutter.repo_name}}/config/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index a9be091c..60a24c02 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -276,14 +276,14 @@ else: ########## END STORAGE CONFIGURATION ########## EMAIL - DEFAULT_FROM_EMAIL = environ.get('DEFAULT_FROM_EMAIL', + DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', '{{cookiecutter.project_name}} <{{cookiecutter.project_name}}-noreply@{{cookiecutter.doman_name}}>') EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' - EMAIL_HOST = environ.get('EMAIL_HOST', 'smtp.sendgrid.com') + EMAIL_HOST = os.environ.get('EMAIL_HOST', 'smtp.sendgrid.com') EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_PASSWORD', '') EMAIL_HOST_USER = os.environ.get('SENDGRID_USERNAME', '') - EMAIL_PORT = environ.get('EMAIL_PORT', 587) - EMAIL_SUBJECT_PREFIX = environ.get('EMAIL_SUBJECT_PREFIX', '[{{cookiecutter.project_name}}] ') + EMAIL_PORT = os.environ.get('EMAIL_PORT', 587) + EMAIL_SUBJECT_PREFIX = os.environ.get('EMAIL_SUBJECT_PREFIX', '[{{cookiecutter.project_name}}] ') EMAIL_USE_TLS = True SERVER_EMAIL = EMAIL_HOST_USER ########## END EMAIL