From 125037cf8a7cf4fc409b3d4ee83f438389e7b0de Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 22 Mar 2014 23:06:29 +0530 Subject: [PATCH] fix(cookie cutter): fixes the misuse of `repo_name`/`project_name` * project_name may contain spaces, do not use for generating emails * 'name' variable in package.json is used by Gruntfile to figure-out the directory structure of project, so `repo_name` is what must be used here --- {{cookiecutter.repo_name}}/package.json | 2 +- .../{{cookiecutter.repo_name}}/config/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/package.json b/{{cookiecutter.repo_name}}/package.json index dca3d507..47dd4d55 100644 --- a/{{cookiecutter.repo_name}}/package.json +++ b/{{cookiecutter.repo_name}}/package.json @@ -1,5 +1,5 @@ { - "name": "{{cookiecutter.project_name}}", + "name": "{{cookiecutter.repo_name}}", "version": "{{ cookiecutter.version }}", "dependencies": {}, "devDependencies": { diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index 8b014a23..50209ad0 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -365,7 +365,7 @@ class Production(Common): ########## EMAIL DEFAULT_FROM_EMAIL = values.Value( - '{{cookiecutter.project_name}} <{{cookiecutter.project_name}}-noreply@{{cookiecutter.domain_name}}>') + '{{cookiecutter.project_name}} ') EMAIL_HOST = values.Value('smtp.sendgrid.com') EMAIL_HOST_PASSWORD = values.SecretValue(environ_prefix="", environ_name="SENDGRID_PASSWORD") EMAIL_HOST_USER = values.SecretValue(environ_prefix="", environ_name="SENDGRID_USERNAME")