{
  "id": "python/flask-blueprint-not-registered",
  "signature": "AssertionError: The name 'auth' is not registered as a blueprint. Did you forget to register it?",
  "signature_zh": "断言错误：名称 'auth' 未注册为蓝图。您是否忘记注册它？",
  "regex": "AssertionError:\\ The\\ name\\ 'auth'\\ is\\ not\\ registered\\ as\\ a\\ blueprint\\.\\ Did\\ you\\ forget\\ to\\ register\\ it\\?",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A blueprint must be registered with the Flask app before it can be used.",
  "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": "Importing the blueprint but not calling app.register_blueprint",
      "why_fails": "Registration is required to add routes.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Registering with wrong name",
      "why_fails": "The name must match the blueprint's name attribute.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Register the blueprint with the app",
      "success_rate": 1.0,
      "how": "from myapp.auth import auth_bp\napp.register_blueprint(auth_bp)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the blueprint name and register correctly",
      "success_rate": 0.95,
      "how": "print(auth_bp.name)  # ensure it's 'auth'\napp.register_blueprint(auth_bp, url_prefix='/auth')",
      "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-06-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}