-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to load models in __init__ fails in 1.10 #30
Comments
@skorokithakis Are you using the latest from master, or installing from pypi? This should be fixed in the repo |
I was using both. It's trying to import utils, which imports models, which fails in 1.10. |
Oh! I did not notice about it. Going to work on this in this weekend. |
@skorokithakis I have tested this in my local environment. Can you please recreate your virtualenv and install directly from this repository? I think your virtualenv is using the old version. |
@skorokithakis A new release |
Yep, |
Django 1.10 fails with an "Apps are not ready" error when trying to load webpush because it's trying to load its models in
__init__.py
but models haven't been loaded yet. The project should probably be restructured so it either uses lazy loading or doesn't load anything in__init__.py
.The text was updated successfully, but these errors were encountered: