[Django] #34115: Document RUN_MAIN environment variable

167 views
Skip to first unread message

Django

unread,
Oct 24, 2022, 11:21:24 AM10/24/22
to django-...@googlegroups.com
#34115: Document RUN_MAIN environment variable
------------------------------------------------+------------------------
Reporter: johnthagen | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 4.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 doing some research into how to control how code should run in the
ready function, I came across a reference to the {{{RUN_MAIN}}}
environment variable that seems to only be set when the main server is
executed (not when the reload server is executed, or other management
commands are run).

When I searched for {{{RUN_MAIN}}} in the main Django documentation, I
didn't find any hits. I was hoping there would be official documentation
on when this environment variable is designed to be used / when it can be
relied on.

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

Django

unread,
Oct 24, 2022, 2:04:45 PM10/24/22
to django-...@googlegroups.com
#34115: Document RUN_MAIN environment variable
-------------------------------------+-------------------------------------
Reporter: johnthagen | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 4.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 Mariusz Felisiak):

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


Comment:

The `RUN_MAIN` environment variable is a private API, not something that
should be used or overwritten by users.

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

Reply all
Reply to author
Forward
0 new messages