# django.core.exceptions.ImproperlyConfigured: The STATIC_URL setting must not be empty.

- **ID:** `python/django-static-file-url-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

STATIC_URL 未设置或为空字符串

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.2 | active | — | — |
| 4.0 | active | — | — |
| 5.0 | active | — | — |

## Workarounds

1. **在 settings.py 中设置 STATIC_URL** (100% success)
   ```
   STATIC_URL = '/static/'
   ```
2. **使用环境变量配置** (95% success)
   ```
   STATIC_URL = os.environ.get('STATIC_URL', '/static/')
   ```

## Dead Ends

- **设置 STATIC_URL 为 '/'** — 可能与其他 URL 冲突 (50% fail)
- **删除 STATIC_URL 设置** — Django 会使用默认值，但可能不满足需求 (60% fail)
