Invalid HTTP_HOST header: ‘xxxx’. You may need to add u’xxxx’ to ALLOWED_HOSTS. 在访问请求时出现这个错误,说明没有修改setting.py里的ALLOWED_HOSTS=[’*’]