{
  "id": "python/django-authentication-backend-error",
  "signature": "django.core.exceptions.ImproperlyConfigured: Authentication backends must be a list or tuple.",
  "signature_zh": "配置错误：认证后端必须是列表或元组",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ Authentication\\ backends\\ must\\ be\\ a\\ list\\ or\\ tuple\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "AUTHENTICATION_BACKENDS设置类型错误",
  "root_cause_type": "generic",
  "root_cause_zh": "settings.py中AUTHENTICATION_BACKENDS不是列表或元组，可能是字符串",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Django无法迭代字符串，仍会报错",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "用户认证功能完全失效",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "删除AUTHENTICATION_BACKENDS设置，使用Django默认值",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}