Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 Simon Charette, 6 years ago

Resolution: invalid
Status: newclosed

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.

Version 0, edited 6 years ago by Simon Charette (next)

comment:2 by Tim Graham, 6 years ago

Component: Uncategorizedcontrib.staticfiles
Resolution: invalidwontfix
Type: UncategorizedCleanup/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 Simon Charette, 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 Jahongir, 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.

Note: See TracTickets for help on using tickets.
Back to Top