#29914 closed Cleanup/optimization (wontfix)
Also allow "y" while running collectstatic so that the user doesn't have to type in the whole word "yes".
Reported by: | Jahongir | Owned by: | nobody |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 2.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running python manage.py collectstatic
, users have to type in the whole word "yes".
I know it is two more chars but I feel like most tools also allow "y" together with "yes". Today I automatically typed "y" and pressed enter several times and spent around 2-3 minutes to find where I went wrong.
Also it would be a good first contribution opportunity.
Change History (4)
comment:1 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Component: | Uncategorized → contrib.staticfiles |
---|---|
Resolution: | invalid → wontfix |
Type: | Uncategorized → Cleanup/optimization |
Simon, I think you missed the point of the suggestion, allowing 'y' instead of 'yes' as confirmation for the interactive prompt. Anyway, I don't see a huge advantage to the proposed change. Considering the confirmation involves deleting files, ensuring that users read it carefully and follow instructions seems okay to me.
comment:3 by , 6 years ago
You are right Tim, sorry for the rough answer Jahongir. I misread your report as a request to add a -y
flag to the collectstatic
command.
comment:4 by , 6 years ago
Simon, that's okay. Probably I didn't do a good job of explaining my suggestion. After Tim's response, I agree that it is not a good idea. Thank you.
Hey there,
Most of Django commands have a
--noinput
flag for this purpose, collectstatic is no different.This is a question that would have been easily resolved through support channels so please avoid filling bugs before filling out a bug report.