继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

DisallowedHost at出现这样的错误

Rossum
关注TA
已关注
手记 1
粉丝 0
获赞 0

DisallowedHost at /
Invalid HTTP_HOST header: '10.128.28.186:8000'. You may need to add u'10.128.28.186' to ALLOWED_HOSTS.
Request Method: GET
Request URL: http://10.128.28.186:8000/
Django Version: 1.11.4
Exception Type: DisallowedHost
Exception Value:
Invalid HTTP_HOST header: '10.128.28.186:8000'. You may need to add u'10.128.28.186' to ALLOWED_HOSTS.
Exception Location: C:\Users\Administrator\Envs\testvir2\lib\site-packages\django\http\request.py in get_host, line 113
Python Executable: C:\Users\Administrator\Envs\testvir2\Scripts\python.exe
Python Version: 2.7.13
Python Path:
['C:\Users\Administrator\PycharmProjects\test2',
'C:\Users\Administrator\PycharmProjects\test2',
'C:\Windows\system32\python27.zip',
'C:\Users\Administrator\Envs\testvir2\DLLs',
'C:\Users\Administrator\Envs\testvir2\lib',
'C:\Users\Administrator\Envs\testvir2\lib\plat-win',
'C:\Users\Administrator\Envs\testvir2\lib\lib-tk',
'C:\Users\Administrator\Envs\testvir2\Scripts',
'c:\python27\Lib',
'c:\python27\DLLs',
'c:\python27\Lib\lib-tk',
'C:\Users\Administrator\Envs\testvir2',
'C:\Users\Administrator\Envs\testvir2\lib\site-packages']
Server time: Mon, 28 Aug 2017 23:26:53 +0000

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP