# Django配置错误：此身份验证后端不支持模型后端。

- **ID:** `python/django-auth-backend-error`
- **领域:** python
- **类别:** auth_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

自定义身份验证后端配置错误或使用了错误的基类。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   Correctly subclass BaseBackend and implement authenticate() and get_user() methods.
   ```

## 无效尝试

- **** — Loses custom authentication logic. (50% 失败率)
- **** — If custom backend is needed, this removes functionality. (60% 失败率)
