mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 16:24:14 +03:00
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:
parent
1ad866770a
commit
125037cf8a
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "{{cookiecutter.project_name}}",
|
||||
"name": "{{cookiecutter.repo_name}}",
|
||||
"version": "{{ cookiecutter.version }}",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user