Monday, April 25, 2016

Re: Django 1.9 Apps aren't loaded yet

The initialization process of models seems to be good step in cleaning many problems, but I don't understant why I can't import models.
The usage of the model should raise exception when it is not loaded/initialized, but not importing a model class!

This requirement breaks packages encapsulation or requires to move every models import into all functions. 
Should we stop importing models at the top of the modules, now?  
It seems like a next Django`s nightmare. 

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/c87317cf-e430-441e-bba9-975245dba1de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment