Forums

400 Bad request

Hi, I'm getting a HTTP 400 Bad Request from my Django website at justinhui.pythonanywhere.com since the upgrade yesterday.

I've reloaded it, and there's nothing suspicious in the error logs and all the unit tests run ok. Is there anything else I should check?

That usually means that your ALLOWED_HOSTS is incorrect. Check that it's the same as the domain that your web app is on.

Thanks that was it!

I made a help page about the django 400 bad request error, hope people find it useful!