Use project_slug instead of project_name for cookiecutter-webpack to avoid npm errors

This commit is contained in:
Jiun Wei Chia 2016-07-01 17:01:14 +08:00
parent 02ce5b4250
commit f2cd307423

View File

@ -171,7 +171,7 @@ def add_webpack():
'https://github.com/hzdg/cookiecutter-webpack.git',
replay=False, overwrite_if_exists=True, output_dir='../',
checkout='pydanny-django', no_input=True, extra_context={
'project_name': '{{ cookiecutter.project_name }}',
'project_name': '{{ cookiecutter.project_slug }}',
'repo_name': '{{ cookiecutter.project_slug }}',
'repo_owner': '',
'project_dir': '{{ cookiecutter.project_slug }}',