Skip to content

Commit

Permalink
Merge pull request #4 from jaydenwindle/fix/dot_src_root
Browse files Browse the repository at this point in the history
Split source_root directory creation and django project start command
  • Loading branch information
peterlauri authored Dec 12, 2017
2 parents a085cba + e8fb6c6 commit 50c8971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/pre_gen_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fi

{{ cookiecutter.virtualenv_bin }} .ve
.ve/bin/pip install -q "django=={{ cookiecutter.django_version }}"
mkdir "$source_root" && .ve/bin/django-admin.py startproject -v 0 "{{ cookiecutter.project_name }}" "{{ cookiecutter.source_root }}"
mkdir "$source_root"
.ve/bin/django-admin.py startproject -v 0 "{{ cookiecutter.project_name }}" "{{ cookiecutter.source_root }}"

echo "---> DONE Running pre-hook script..."

0 comments on commit 50c8971

Please sign in to comment.