The right place to keep my signals.py file in a Django project

前端 未结 8 964
天涯浪人
天涯浪人 2020-11-27 14:24

Based on Django\'s documentation I was reading, it seems like signals.py in the app folder is a good place to start with, but the problem I\'m facing is that wh

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 14:50

    To solve your problem you just have to import signals.py after your model definition. That's all.

提交回复
热议问题