[Django]-Django: having trouble setting up app ready() to import signals

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.

0👍

try this:

@receiver(post_save, sender='app.Game')
👤alphwe

Leave a comment