Hi,

I believe that the standard place for this is AppConfig.ready()
<https://docs.djangoproject.com/en/1.11/ref/applications/#django.apps.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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b203889-c48c-bad8-52ee-14aed5bfada8%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to