I want to execute some code at startup of Django server but I want it to run only once. Currently when I start the server it\'s executed twice. Documentation says that this
When you use python manage.py runserver Django start two processes, one for the actual development server and other to reload your application when the code change.
You can also start the server without the reload option, and you will see only one process running will only be executed once :
python manage.py runserver --noreload
You can see this link, it resolves the ready() method running twice in Django