[Django] #34326: Standardize case for commands

9 views
Skip to first unread message

Django

unread,
Feb 9, 2023, 9:43:06 AM2/9/23
to django-...@googlegroups.com
#34326: Standardize case for commands
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
shivaRamdeen |
Type: | Status: new
Cleanup/optimization |
Component: Core | Version: dev
(Management commands) | Keywords: Commands, Command
Severity: Normal | Case
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Are there any plans to standardize the case of commands in django?

As an alternative the ability to automatically match snake_case to
flatcase command names would be helpful.

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

Django

unread,
Feb 9, 2023, 10:20:40 AM2/9/23
to django-...@googlegroups.com
#34326: Standardize case for commands
-------------------------------------+-------------------------------------
Reporter: Shiva Shane Ramdeen | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: Commands, Command | Triage Stage:
Case | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

It looks like there are two built-in commands that use underscores (snake
case): `remove_stale_contenttypes` and `ping_google`. I never noticed the
inconsistency, and I doubt it causes much confusion. Are you really
struggling with it? Perhaps commands in third-party packages are affected?

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

Django

unread,
Feb 9, 2023, 2:53:01 PM2/9/23
to django-...@googlegroups.com
#34326: Standardize case for commands
-------------------------------------+-------------------------------------
Reporter: Shiva Shane Ramdeen | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: Commands, Command | Triage Stage:
Case | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Shiva Shane Ramdeen):

Core commands are not an issue. they are pretty consistent for the most
part. The issue really is with djang_extensions. Each project is
consistent with either snake_case or flatcase but inter inter app commands
feel inconsistent.

maybe it might be a good idea to investigate this type of change in the
django_extensions repo instead, not sure.


Replying to [comment:1 Tim Graham]:


> It looks like there are two built-in commands that use underscores
(snake case): `remove_stale_contenttypes` and `ping_google`. I never
noticed the inconsistency, and I doubt it causes much confusion. Are you
really struggling with it? Perhaps commands in third-party packages are
affected?

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

Django

unread,
Feb 9, 2023, 2:57:57 PM2/9/23
to django-...@googlegroups.com
#34326: Standardize case for commands
-------------------------------------+-------------------------------------
Reporter: Shiva Shane Ramdeen | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: invalid

Keywords: Commands, Command | Triage Stage:
Case | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

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


Comment:

`django-extensions` is a 3rd-party package. Please report it on their
[https://github.com/django-extensions/django-extensions/issues issue
tracker].

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

Reply all
Reply to author
Forward
0 new messages