{
  "id": "python/pytest-django-migration-test",
  "signature": "django.db.migrations.exceptions.NodeNotFoundError: Migration myapp.0002_auto depends on nonexistent node ('other_app', '0001_initial')",
  "signature_zh": "django.db.migrations.exceptions.NodeNotFoundError: 迁移 myapp.0002_auto 依赖于不存在的节点 ('other_app', '0001_initial')",
  "regex": "django\\.db\\.migrations\\.exceptions\\.NodeNotFoundError:\\ Migration\\ myapp\\.0002_auto\\ depends\\ on\\ nonexistent\\ node\\ \\('other_app',\\ '0001_initial'\\)",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A migration file references a dependency that doesn't exist. This can happen if the other app is not installed, the migration was deleted, or there's a circular dependency.",
  "root_cause_type": "generic",
  "root_cause_zh": "迁移文件引用了不存在的依赖项。这可能发生在其他应用未安装、迁移被删除或存在循环依赖时。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This may break the migration history and cause other issues.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This marks migrations as applied without actually creating tables, leading to database inconsistencies.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The app must have its migrations to satisfy the dependency.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Check INSTALLED_APPS and run makemigrations for missing apps.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Edit the migration's dependencies list to reference the correct app and migration.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "python manage.py migrate --fake-initial",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}