{
  "id": "python/django-static-file-url-error",
  "signature": "django.core.exceptions.ImproperlyConfigured: The STATIC_URL setting must not be empty.",
  "signature_zh": "配置错误：STATIC_URL 设置不能为空",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ The\\ STATIC_URL\\ setting\\ must\\ not\\ be\\ empty\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "STATIC_URL 未设置或为空字符串",
  "root_cause_type": "generic",
  "root_cause_zh": "Django 要求静态文件 URL 前缀必须配置",
  "versions": [
    {
      "version": "3.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "设置 STATIC_URL 为 '/'",
      "why_fails": "可能与其他 URL 冲突",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "删除 STATIC_URL 设置",
      "why_fails": "Django 会使用默认值，但可能不满足需求",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "在 settings.py 中设置 STATIC_URL",
      "success_rate": 1.0,
      "how": "STATIC_URL = '/static/'",
      "condition": "",
      "sources": []
    },
    {
      "action": "使用环境变量配置",
      "success_rate": 0.95,
      "how": "STATIC_URL = os.environ.get('STATIC_URL', '/static/')",
      "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": "2025-03-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}