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
This commit is contained in:
Saurabh Kumar 2014-03-22 23:06:29 +05:30
parent 1ad866770a
commit 125037cf8a
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"name": "{{cookiecutter.project_name}}",
"name": "{{cookiecutter.repo_name}}",
"version": "{{ cookiecutter.version }}",
"dependencies": {},
"devDependencies": {

View File

@ -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}} <noreply@{{cookiecutter.domain_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")