How to avoid AppConfig.ready() method running twice in Django

When you use python manage.py runserver, Django starts two processes, one for the actual development server, the other to reload your application when the code changes.

You can start the server without the reload option, and you will see only one process running:

python manage.py runserver --noreload

See also the ready() method running twice in Django.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)