mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Fixed bug with pycharm editor option in post_gen_project.py (#4441)
This commit is contained in:
parent
ea9e90f173
commit
e0388d11c7
|
@ -80,7 +80,7 @@ def remove_docker_files():
|
|||
file_names = ["local.yml", "production.yml", ".dockerignore"]
|
||||
for file_name in file_names:
|
||||
os.remove(file_name)
|
||||
if "{{ cookiecutter.editor }}".lower() == "PyCharm":
|
||||
if "{{ cookiecutter.editor }}" == "PyCharm":
|
||||
file_names = ["docker_compose_up_django.xml", "docker_compose_up_docs.xml"]
|
||||
for file_name in file_names:
|
||||
os.remove(os.path.join(".idea", "runConfigurations", file_name))
|
||||
|
@ -428,7 +428,7 @@ def main():
|
|||
if "{{ cookiecutter.username_type }}" == "username":
|
||||
remove_custom_user_manager_files()
|
||||
|
||||
if "{{ cookiecutter.editor }}".lower() != "PyCharm":
|
||||
if "{{ cookiecutter.editor }}" != "PyCharm":
|
||||
remove_pycharm_files()
|
||||
|
||||
if "{{ cookiecutter.use_docker }}".lower() == "y":
|
||||
|
|
Loading…
Reference in New Issue
Block a user