5👍
✅
It looks like you have both apps.py
and models.py
importing your signals. When models.py
is loaded it imports signals
which then tries to reference your Game
model, causing the “Models aren’t yet loaded” error.
Remove the from app import signals
from models.py
. You can import your models
from signals
but not the other way around.
- [Django]-What is a main reason that Django webserver is blocking?
- [Django]-Django custom forms select tag
- [Django]-Django "Did you mean?" query
- [Django]-Django while loop
- [Django]-Show numpy array as image in Django
Source:stackexchange.com