AppConfig.ready() is the proper way to execute code when Django starts, for a given app. As the docs mention:
It is called as soon as the registry i