# 配置错误：USE_TZ 为 True 但未设置 TIME_ZONE

- **ID:** `python/django-timezone-aware-error`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

USE_TZ=True 需要指定 TIME_ZONE 设置。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   Set TIME_ZONE = 'UTC' or your local timezone in settings.py.
   ```
2. **** (80% 成功率)
   ```
   If you don't need timezone support, set USE_TZ = False.
   ```

## 无效尝试

- **** — Setting USE_TZ=False disables timezone support, which may cause datetime inconsistencies. (60% 失败率)
- **** — Setting TIME_ZONE='' doesn't satisfy Django; must be a valid timezone string. (80% 失败率)
