Conditionally gitignore virtualenv files

Fixes #1321 the right way.
This commit is contained in:
Nikita P. Shupeyko 2018-05-05 01:29:47 +03:00
parent f22f8e3716
commit b7172cfeba

View File

@ -324,7 +324,7 @@ Session.vim
# Auto-generated tag files
tags
{% if cookiecutter.use_docker == 'n' %}
### VirtualEnv template
# Virtualenv
@ -337,16 +337,10 @@ tags
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json
{% endif %}
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' -%}
### Project template
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
MailHog
{% endif %}
{%- endif %}
{{ cookiecutter.project_slug }}/media/
{% if cookiecutter.use_docker == 'y' -%}
# Added to maintain local compose files which are ignored by something above.
# See issue https://github.com/pydanny/cookiecutter-django/issues/1321
!/compose/local/
{% endif %}