[Django] #36021: Add option to configure the settings module from pyproject.toml

11 views
Skip to first unread message

Django

unread,
Dec 17, 2024, 9:40:13 AM12/17/24
to django-...@googlegroups.com
#36021: Add option to configure the settings module from pyproject.toml
-------------------------------------+-------------------------------------
Reporter: Ryan | Owner: Ryan Hiebert
Hiebert |
Type: New | Status: assigned
feature |
Component: Core | Version:
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Read from a `pyproject.toml` in the current directory, from the
`tool.django.settings_module` key if present, and set it as the default
`DJANGO_SETTINGS_MODULE` in the same way that is currently done in the
`manage.py`. To allow it to also be used as an alternative to `manage.py`,
also adjust the python path to include the same directory as the
`pyproject.toml` in the python path.

Forum Discussion: https://forum.djangoproject.com/t/name-the-main-command-
django/37230/14
External Implementation: https://github.com/ryanhiebert/django-cmd
--
Ticket URL: <https://code.djangoproject.com/ticket/36021>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 17, 2024, 9:45:08 AM12/17/24
to django-...@googlegroups.com
#36021: Add option to configure the settings module from pyproject.toml
-------------------------------------+-------------------------------------
Reporter: Ryan Hiebert | Owner: Ryan
| Hiebert
Type: New feature | Status: assigned
Component: Core (Management | Version:
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ryan Hiebert):

* stage: Unreviewed => Accepted

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

Django

unread,
Dec 17, 2024, 9:57:28 AM12/17/24
to django-...@googlegroups.com
#36021: Add option to configure the settings module from pyproject.toml
-------------------------------------+-------------------------------------
Reporter: Ryan Hiebert | Owner: Ryan
| Hiebert
Type: New feature | Status: assigned
Component: Core (Management | Version:
commands) |
Severity: Normal | Resolution:
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 Sarah Boyce):

* stage: Accepted => Unreviewed

Comment:

You cannot accept your own ticket 🙂
--
Ticket URL: <https://code.djangoproject.com/ticket/36021#comment:2>

Django

unread,
Dec 17, 2024, 9:59:49 AM12/17/24
to django-...@googlegroups.com
#36021: Add option to configure the settings module from pyproject.toml
-------------------------------------+-------------------------------------
Reporter: Ryan Hiebert | Owner: Ryan
| Hiebert
Type: New feature | Status: assigned
Component: Core (Management | Version:
commands) |
Severity: Normal | Resolution:
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 Ryan Hiebert):

Sorry about that, I was basing that off of the feedback from the Forum.
--
Ticket URL: <https://code.djangoproject.com/ticket/36021#comment:3>

Django

unread,
Dec 17, 2024, 10:43:23 AM12/17/24
to django-...@googlegroups.com
#36021: Add option to configure the settings module from pyproject.toml
-------------------------------------+-------------------------------------
Reporter: Ryan Hiebert | Owner: Ryan
| Hiebert
Type: New feature | Status: closed
Component: Core (Management | Version:
commands) |
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 Natalia Bidart):

* resolution: => wontfix
* status: assigned => closed

Comment:

Closing following my comment in the forum topic (since we need to triage
somehow, and we can't accept this yet), we need to allow for more time for
others to find the topic, read and comment. Let's revisit early Jan!
--
Ticket URL: <https://code.djangoproject.com/ticket/36021#comment:4>
Reply all
Reply to author
Forward
0 new messages