You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Django 1.10 (and 1.9) you can't load models in an apps __init__.py.
Including template_email in an apps INSTALLED_APPS setting leads to the following error:
$ ./manage.py
Traceback (most recent call last):
File "./manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
----- <snip> -----
File "/Users/evdb/app/.venv/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
A dirty workaround appears to be to move the from django.contrib.auth.models import User statement from the top of __init__.py to somewhere in the send function. However the changes in pull request #10 are more robust.
The text was updated successfully, but these errors were encountered:
In Django 1.10 (and 1.9) you can't load models in an apps
__init__.py
.Including
template_email
in an appsINSTALLED_APPS
setting leads to the following error:A dirty workaround appears to be to move the
from django.contrib.auth.models import User
statement from the top of__init__.py
to somewhere in thesend
function. However the changes in pull request #10 are more robust.The text was updated successfully, but these errors were encountered: