{
  "id": "python/flask-blueprint-registration",
  "signature": "AssertionError: A blueprint cannot be registered more than once",
  "signature_zh": "断言错误：蓝图不能注册多次。",
  "regex": "AssertionError:\\ A\\ blueprint\\ cannot\\ be\\ registered\\ more\\ than\\ once",
  "domain": "python",
  "category": "config_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": "尝试创建新蓝图但使用了相同名称。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "在多个文件中导入并注册同一蓝图。",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "只注册一次：\nfrom blueprints import auth_bp\napp.register_blueprint(auth_bp)\n# 不要再次注册",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "每次创建新实例：\nauth_bp = Blueprint('auth', __name__)\napp.register_blueprint(auth_bp)",
      "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": "2025-06-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}