New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added documentation for collectstatic --clear. #42007
Added documentation for collectstatic --clear. #42007
Conversation
Added a description of the --clear argument used with the Django management command, collectstatic. (When #1810 added this feature the documentation was not updated).
The test
The test
|
The test
|
clear: | ||
description: | ||
- Clear the existing files before trying to copy or link the original file. | ||
- Used only with the 'collectstatic' command. The --noinput argument will be supplied automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The C(--noinput) argument will be added automatically.
- Clear the existing files before trying to copy or link the original file. | ||
- Used only with the 'collectstatic' command. The --noinput argument will be supplied automatically. | ||
required: false | ||
default: "no" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: no
The test
|
@gundalow: this is just a documentation update that should be applied retrospectively and not related to an upcoming release. I searched for a changelog that would give me an idea in which version PR for the clear argument was added but did not find anything. Any ideas on how to deal with this failing test and how to move this forward? |
@StuartMacKay What you did was correct so I've merged this. I'll create a backport to get this into Thank you very much for your first PR, apologies I missed your comment above, unfortunatly I get a lot of GitHub email so I sometime miss the odd PR. Though merged now! Looking at the module, there seem to be other docs issues
In the same PR remove the offending lines from |
SUMMARY
Documents the clear argument to the django_manage module that can be used to delete existing files when the collectstatic management command is run.
ISSUE TYPE
COMPONENT NAME
django_manage
ANSIBLE VERSION
ADDITIONAL INFORMATION
When ansible/ansible-modules-core#1810 was submitted there was no corresponding update to the documentation for the django_manage module.
The PR was merged on 17 Sep 2015 but I do not know what version this was added to. This will need to be added to the change here.
Sample output from anisble when running the command.