{
  "id": "python/django-static-file-not-found",
  "signature": "django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.",
  "signature_zh": "Django配置错误：你正在使用staticfiles应用而没有设置STATIC_ROOT为文件系统路径。",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ You're\\ using\\ the\\ staticfiles\\ app\\ without\\ having\\ set\\ the\\ STATIC_ROOT\\ setting\\ to\\ a\\ filesystem\\ path\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "STATIC_ROOT is not configured when using collectstatic or serving static files in production.",
  "root_cause_type": "generic",
  "root_cause_zh": "在使用collectstatic或生产环境中提供静态文件时，STATIC_ROOT未配置。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Setting STATIC_ROOT to a non-existent path",
      "why_fails": "Directory must exist or be created.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the setting and using STATICFILES_DIRS only",
      "why_fails": "collectstatic requires STATIC_ROOT.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set STATIC_ROOT in settings.py",
      "success_rate": 0.95,
      "how": "STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run collectstatic after setting",
      "success_rate": 0.9,
      "how": "python manage.py collectstatic",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}