{
  "id": "python/django-signal-receiver-error",
  "signature": "django.core.exceptions.ImproperlyConfigured: Receiver must be a callable or a tuple of callables.",
  "signature_zh": "配置错误：接收器必须是可调用对象或可调用对象元组",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ Receiver\\ must\\ be\\ a\\ callable\\ or\\ a\\ tuple\\ of\\ callables\\.",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "信号连接时传递了非函数对象",
  "root_cause_type": "generic",
  "root_cause_zh": "在connect()方法中传入的不是函数或可调用对象",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Django不支持字符串引用，必须是实际函数",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "信号不会触发，功能缺失",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "from django.db.models.signals import post_save; post_save.connect(my_handler)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "from django.dispatch import receiver; @receiver(post_save, sender=MyModel)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-29",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}