The command:
cookiecutter https://github.com/pydanny/cookiecutter-django/
will clone the lastest version of cookiecutter-django
, which is aimed for Django 1.9.
There is a Stable section in the README
pointing to some tags. One of them being https://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7
.
But if I try:
cookiecutter https://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7
I get an error:
subprocess.CalledProcessError: Command '[u'git', u'clone', u'https://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7']' returned non-zero exit status 128
So, how to specify cookiecutter
to use those stable released instead of the master
branch?
According to cookiecutter docs, You can choose to checkout specific branch, tags and commit with CLI argument --checkout
or -c
Something like this command should work:
$ cookiecutter https://github.com/pydanny/cookiecutter-django.git --checkout 1.8.7