原文出处:https://stackoverflow.com/questions/19875789/django-gives-bad-request-400-when-debug-false
在Apache下部署django ,当关闭debug后,前台连接时,报 BAD REQUEST (400) 这个提示
找了一番,还是在stackoverflow上找到答案的,当关闭debug后,需要将
ALLOWED_HOSTS = ['*']可以匹配任意host访问
ALLOWED_HOSTS = ['*']