Re: Start point of dynmanic models creation.

2016-10-20 Thread Vlasov Vitaly
Yes. I know how django works with dynamic models and this make me sad. Yes, i know workflow of AppConfigs init. It set models_ready and ready booleans and call AppConfig.ready() then. I really can't understand why AppConfig.ready() is calling multiple times. This is strange. But this can be fix

Re: Start point of dynmanic models creation.

2016-10-19 Thread Jani Tiainen
Well problem with Django is that there is not really support for "dynamic models". Django expects that _before_ calling ready() all models are registered and ready for use. Also note that ready() maybe called multiple times. You should take into account that for example when running unit tes

Start point of dynmanic models creation.

2016-10-19 Thread Vlasov Vitaly
Hello. I have working model factory of dynamic models in my app.models.py. I need to know where i should call it in my code. Right now i call it in MyAppConfig ready() method and think it is not right way. But this is working. Where i should place dynamic models factory call? -- You received