mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 09:36:52 +03:00
parent
afd3191038
commit
0a69f19452
|
@ -36,5 +36,6 @@
|
|||
"use_sentry_for_error_reporting": "n",
|
||||
"use_opbeat": "n",
|
||||
"use_whitenoise": "n",
|
||||
"use_heroku": "n"
|
||||
"use_heroku": "n",
|
||||
"use_travisci": "n"
|
||||
}
|
||||
|
|
|
@ -105,6 +105,10 @@ def remove_celery_app():
|
|||
shutil.rmtree(os.path.join(PROJECT_DIR_PATH, '{{ cookiecutter.project_slug }}', 'taskapp'))
|
||||
|
||||
|
||||
def remove_dottravisyml_file():
|
||||
os.remove(os.path.join(PROJECT_DIR_PATH, '.travis.yml'))
|
||||
|
||||
|
||||
def append_to_project_gitignore(path):
|
||||
gitignore_file_path = os.path.join(PROJECT_DIR_PATH, '.gitignore')
|
||||
with open(gitignore_file_path, 'a') as gitignore_file:
|
||||
|
@ -269,6 +273,9 @@ def main():
|
|||
if '{{ cookiecutter.use_celery }}'.lower() == 'n':
|
||||
remove_celery_app()
|
||||
|
||||
if '{{ cookiecutter.use_travisci }}'.lower() == 'n':
|
||||
remove_dottravisyml_file()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user