Tuesday, April 26, 2016

Re: Django 1.9 Apps aren't loaded yet



On Monday, April 25, 2016 at 11:44:20 PM UTC+2, marcin....@gmail.com wrote:
 
Just wondering about possibility to do some kind of late initialization.

I've found Dectate library as a example of deferring configuration phase. 
I'm not talking about using it directly, but to familize with the concept.

Dectate is based on decorators, but applying the idea to metaclasses shouldn't be a problem.

The whole thing lies in registering defered intializers (model/app initializers in Django) and scan() config at the end of intitalization phase.

Marcin

--
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+unsubscribe@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/f40b3c1f-ce85-4e97-8039-2e0cc304f680%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment