mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 14:04:52 +03:00
Fix FileNotFoundError
This commit is contained in:
parent
7cedff22d5
commit
24407e9761
|
@ -73,10 +73,6 @@ def remove_heroku_files():
|
||||||
os.remove(os.path.join(PROJECT_DIR_PATH, file_name))
|
os.remove(os.path.join(PROJECT_DIR_PATH, file_name))
|
||||||
|
|
||||||
|
|
||||||
def remove_dotenv_file():
|
|
||||||
os.remove(os.path.join(PROJECT_DIR_PATH, '.env'))
|
|
||||||
|
|
||||||
|
|
||||||
def remove_grunt_files():
|
def remove_grunt_files():
|
||||||
file_names = [
|
file_names = [
|
||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
|
@ -268,9 +264,6 @@ def main():
|
||||||
if '{{ cookiecutter.use_heroku }}'.lower() == 'n':
|
if '{{ cookiecutter.use_heroku }}'.lower() == 'n':
|
||||||
remove_heroku_files()
|
remove_heroku_files()
|
||||||
|
|
||||||
if '{{ cookiecutter.use_docker }}'.lower() == 'n' and '{{ cookiecutter.use_heroku }}'.lower() == 'n':
|
|
||||||
remove_dotenv_file()
|
|
||||||
|
|
||||||
if '{{ cookiecutter.js_task_runner}}'.lower() == 'gulp':
|
if '{{ cookiecutter.js_task_runner}}'.lower() == 'gulp':
|
||||||
remove_grunt_files()
|
remove_grunt_files()
|
||||||
elif '{{ cookiecutter.js_task_runner}}'.lower() == 'grunt':
|
elif '{{ cookiecutter.js_task_runner}}'.lower() == 'grunt':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user