[Django] #29914: Also allow "y" while running collectstatic so that the user doesn't have to type in the whole word "yes".

7 views
Skip to first unread message

Django

unread,
Nov 2, 2018, 7:39:30 AM11/2/18
to django-...@googlegroups.com
#29914: Also allow "y" while running collectstatic so that the user doesn't have to
type in the whole word "yes".
-----------------------------------------+------------------------
Reporter: Jahongir | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29914>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 2, 2018, 11:31:26 AM11/2/18
to django-...@googlegroups.com
#29914: Also allow "y" while running collectstatic so that the user doesn't have to
type in the whole word "yes".
-------------------------------+--------------------------------------
Reporter: Jahongir | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 2.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Simon Charette):

* status: new => closed
* resolution: => invalid


Comment:

Hey there,

Most of Django commands have a `--noinput` flag for this purpose,
[https://docs.djangoproject.com/en/2.1/ref/contrib/staticfiles/#cmdoption-
collectstatic-noinput collectstatic is no different].

This is a question that would have been easily resolved through
[https://docs.djangoproject.com/en/2.1/internals/contributing/bugs-and-
features/#reporting-bugs support channels so please avoid filling bugs
before filling out a bug report].

--
Ticket URL: <https://code.djangoproject.com/ticket/29914#comment:1>

Django

unread,
Nov 2, 2018, 12:33:14 PM11/2/18
to django-...@googlegroups.com
#29914: Also allow "y" while running collectstatic so that the user doesn't have to
type in the whole word "yes".
-------------------------------------+-------------------------------------
Reporter: Jahongir | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* component: Uncategorized => contrib.staticfiles
* type: Uncategorized => Cleanup/optimization
* resolution: invalid => wontfix


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29914#comment:2>

Django

unread,
Nov 2, 2018, 12:47:44 PM11/2/18
to django-...@googlegroups.com
#29914: Also allow "y" while running collectstatic so that the user doesn't have to
type in the whole word "yes".
-------------------------------------+-------------------------------------
Reporter: Jahongir | Owner: nobody

Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29914#comment:3>

Django

unread,
Nov 2, 2018, 1:00:36 PM11/2/18
to django-...@googlegroups.com
#29914: Also allow "y" while running collectstatic so that the user doesn't have to
type in the whole word "yes".
-------------------------------------+-------------------------------------
Reporter: Jahongir | Owner: nobody

Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Jahongir):

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29914#comment:4>

Reply all
Reply to author
Forward
0 new messages