[Django] #36285: Generate a Sample Configuration File (.env.example) for Django Projects

5 views
Skip to first unread message

Django

unread,
Apr 1, 2025, 1:40:56 PM4/1/25
to django-...@googlegroups.com
#36285: Generate a Sample Configuration File (.env.example) for Django Projects
----------------------------+-----------------------------------------
Reporter: wahagnonan | Type: New feature
Status: new | Component: Uncategorized
Version: 5.1 | Severity: Normal
Keywords: .env | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-----------------------------------------
This proposal automates the creation of a .env.example file when using
django-admin startproject. It eliminates manual environment configuration
by providing a pre-populated file with sample settings that adhere to 12
Factor App principles. Deliverables include the file generation feature,
supporting tests, and updated documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/36285>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 1, 2025, 3:26:27 PM4/1/25
to django-...@googlegroups.com
#36285: Generate a Sample Configuration File (.env.example) for Django Projects
------------------------------+--------------------------------------
Reporter: wahagnonan | Owner: (none)
Type: New feature | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: .env | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Natalia Bidart):

* component: Uncategorized => Core (Other)
* resolution: => wontfix
* status: new => closed
* version: 5.1 => dev

Comment:

Hello wahagnonan. Thank you for your suggestion, but I don't think this is
a good fit for Django, since environment configuration is intentionally
left to the project level rather than being enforced by the framework.

If you disagree, the recommended path forward for new feature ideas is to
first propose and discuss them with the community to build consensus. To
do that, please start a conversation on the
[https://forum.djangoproject.com/c/internals/5 Django Forum], where you'll
reach a broader audience and receive additional feedback.

I'll close this ticket for now, but if the community agrees with the
proposal, feel free to return and reference the forum discussion so we can
re-open it. For more details, please refer to
t[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-
and-features/#requesting-features the documented guidelines for requesting
features].

Thanks again for your interest in improving Django!
--
Ticket URL: <https://code.djangoproject.com/ticket/36285#comment:1>
Reply all
Reply to author
Forward
0 new messages