Re: Proposal: Clarify the ENV var that controls the autoreloader so AppConfig's ready() can be have a guard.

2022-10-18 Thread Steffan Pease
o-check-the-running-django-command/ > ). If it’s runserver, and the env var isn’t set, then you can tell. > > Thanks, > > Adam > > On Sat, Oct 15, 2022 at 4:09 AM Steffan Pease wrote: > >> AppConfig's ready() function gets called multiple times on manage.py

Proposal: Clarify the ENV var that controls the autoreloader so AppConfig's ready() can be have a guard.

2022-10-15 Thread Steffan Pease
AppConfig's ready() function gets called multiple times on manage.py runserver and some tests because multiple copies of django are started, even though none are 'active.' To use runserver as an example, it launches the original process's runserver checks if DJANGO_AUTORELOAD_ENV == "true", and