Invalid HTTP_HOST header

Problem

在这里插入图片描述

solution

The error log is straightforward. As it suggested,You need to add 198.211.99.20 to your ALLOWED_HOSTS setting.

In your project settings.py file,set ALLOWED_HOSTS like this :

ALLOWED_HOSTS = [‘198.211.99.20’, ‘localhost’, ‘127.0.0.1’]

猜你喜欢

转载自blog.csdn.net/vivian_wanjin/article/details/83721028