# django.core.exceptions.ImproperlyConfigured: 'default' database isn't configured.

- **ID:** `python/django-multiple-db-router-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

DATABASES设置中缺少default键

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3'}}
   ```
2. **** (85% success)
   ```
   配置路由器类以处理数据库选择
   ```

## Dead Ends

- **** — Django默认使用default，除非显式指定 (80% fail)
- **** — 所有数据库操作都会失败 (90% fail)
