{
  "id": "python/django-timezone-aware-error",
  "signature": "django.core.exceptions.ImproperlyConfigured: USE_TZ is True but TIME_ZONE is not set",
  "signature_zh": "配置错误：USE_TZ 为 True 但未设置 TIME_ZONE",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ USE_TZ\\ is\\ True\\ but\\ TIME_ZONE\\ is\\ not\\ set",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "USE_TZ=True requires TIME_ZONE setting to be specified.",
  "root_cause_type": "generic",
  "root_cause_zh": "USE_TZ=True 需要指定 TIME_ZONE 设置。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting USE_TZ=False disables timezone support, which may cause datetime inconsistencies.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting TIME_ZONE='' doesn't satisfy Django; must be a valid timezone string.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Set TIME_ZONE = 'UTC' or your local timezone in settings.py.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "If you don't need timezone support, set USE_TZ = False.",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}