diff --git a/cookiecutter.json b/cookiecutter.json index e94c2248..70a352c5 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -4,5 +4,6 @@ "author_name": "Your Name", "email": "Your email", "description": "A short description of the project.", - "year": "Current year" + "year": "Current year", + "domain_name": "Domain name" } diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index fdae6761..5baf6818 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -308,7 +308,7 @@ else: ########## EMAIL DEFAULT_FROM_EMAIL = environ.get('DEFAULT_FROM_EMAIL', - '{{cookiecutter.project_name <{{cookiecutter.project_name-noreply@cheeseland.com>') + '{{cookiecutter.project_name}} <{{cookiecutter.project_name}}-noreply@{{cookiecutter.domain_name}}>') EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = environ.get('EMAIL_HOST', 'smtp.sendgrid.com') EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_PASSWORD', '')