Django refuses the project domain because ALLOWED_HOSTS does not list it

Django is rejecting the domain this project is served on. Add the project domain to ALLOWED_HOSTS in the Django settings, or set it from an environment variable.

Seen8 times
WhereDjango

Why it happens

The app starts, but Django only accepts the hosts listed in its ALLOWED_HOSTS setting, and the project domain is not one of them, so every request is refused.

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation