Execute code when Django starts (BEFORE APP REGISTRATION)

前端 未结 0 1859
轻奢々
轻奢々 2021-02-04 06:17

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题