django-pgviews icon indicating copy to clipboard operation
django-pgviews copied to clipboard

AppRegistryNotReady raises

Open arsen-movsesyan opened this issue 6 years ago • 2 comments

The scenario is out of the box. When model is get created it cannot release projections and raises AppRegistryNotReady.

(see django-pgviews/view.py line 214)

Maybe I missed something on how to defer loading until registry is get populated...

For this particular project I use Django ver. 2.0 Based on documentation it is not supported, but I'd be glad to contribute myself. Just need some input on direction to go.

Thank you

arsen-movsesyan avatar Mar 04 '18 21:03 arsen-movsesyan

I haven't tested this on Django 2.0 neither, so if you can figure it out feel free to send in a PR :)

kennydude avatar Mar 22 '18 16:03 kennydude

Hey @arsen-movsesyan just to update you. I updated a few applications to Django 2.0 back in February and I don’t think I saw the issue you mentioned. At least I don’t recall doing anything special to work around it. Are you using the inferred projections as opposed to passing raw SQL?

@tpict You’re closer to the codebase than me now. Just checking the above is correct?

scott-w avatar Jul 25 '18 16:07 scott-w