标签:hosts 解决 name 修改 rtp art dmi ade invalid
当运行python manage.py runserver 0.0.0.0:8001时候,出现
Invalid HTTP_HOST header: ‘192.168.114.25:8001‘. You may need to add u‘192.168.114.25‘ to ALLOWED_HOSTS.
解决办法:
django-admin.py startproject project-name创建的项目中去修改 setting.py 文件:
ALLOWED_HOSTS = [‘*‘]
标签:hosts 解决 name 修改 rtp art dmi ade invalid
原文地址:http://www.cnblogs.com/liang545621/p/7509921.html