#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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701840a957f8f-e8649875-067a-4ee9-b068-39bcb401d65d-000000%40eu-central-1.amazonses.com.