Saturday, September 23, 2017

Re: best practices for location of start up code

Hi,

I believe that the standard place for this is AppConfig.ready().

Regards,

Antonis

Antonis Christofides  http://djangodeployment.com
On 2017-09-23 00:57, Larry Martell wrote:
We have some code we want to run 1 time when our django app is  started. What is the best place for this? I tried putting it in my  app's config function, but from there I get:    *** AppRegistryNotReady: Apps aren't loaded yet.    

No comments:

Post a Comment