Opened 26 hours ago

Closed 25 hours ago

#36021 closed New feature (wontfix)

Add option to configure the settings module from pyproject.toml

Reported by: Ryan Hiebert Owned by: Ryan Hiebert
Component: Core (Management commands) Version:
Severity: Normal Keywords:
Cc: Ryan Hiebert Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (4)

comment:1 by Ryan Hiebert, 26 hours ago

Triage Stage: UnreviewedAccepted

comment:2 by Sarah Boyce, 25 hours ago

Triage Stage: AcceptedUnreviewed

You cannot accept your own ticket 🙂

comment:3 by Ryan Hiebert, 25 hours ago

Sorry about that, I was basing that off of the feedback from the Forum.

comment:4 by Natalia Bidart, 25 hours ago

Resolution: wontfix
Status: assignedclosed

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!

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