{
  "id": "python/django-email-configuration-error",
  "signature": "django.core.exceptions.ImproperlyConfigured: EMAIL_BACKEND must be set",
  "signature_zh": "配置错误：必须设置 EMAIL_BACKEND",
  "regex": "django\\.core\\.exceptions\\.ImproperlyConfigured:\\ EMAIL_BACKEND\\ must\\ be\\ set",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Email backend is not configured in settings.",
  "root_cause_type": "generic",
  "root_cause_zh": "设置中未配置电子邮件后端。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting EMAIL_BACKEND='' doesn't work; must be a valid backend path.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using SMTP backend without host/user/password fails at runtime.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Set EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' for development.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "For production: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' with EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD.",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}