400 Bad Request error from Django

Are you looking at an error message from a Django application that says

400 Bad Request

Unfriendly huh? It's a common django problem though (as you'll see from a quick google search, and the answer is that you need to set the ALLOWED_HOSTS setting in your settings.py (or switch DEBUG back to True)

More info in the django documentation