{
  "id": "python/flask-app-not-registered",
  "signature": "RuntimeError: The application is not registered on this 'Blueprint' instance. Did you forget to call 'register_blueprint'?",
  "signature_zh": "RuntimeError: 此 'Blueprint' 实例未注册到应用。是否忘记调用 'register_blueprint'？",
  "regex": "RuntimeError:\\ The\\ application\\ is\\ not\\ registered\\ on\\ this\\ 'Blueprint'\\ instance\\.\\ Did\\ you\\ forget\\ to\\ call\\ 'register_blueprint'\\?",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "蓝图未在 Flask 应用中注册，导致路由无法访问。",
  "root_cause_type": "generic",
  "root_cause_zh": "蓝图未在 Flask 应用中注册，导致路由无法访问。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "在蓝图文件中直接使用 app 对象，但蓝图未注册。",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "忘记导入蓝图模块。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "注册蓝图但路径错误，导致导入失败。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "在应用工厂中调用 app.register_blueprint(bp)。",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "确保蓝图文件被正确导入并实例化。",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "使用相对导入或绝对导入确保模块找到。",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-25",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}