标签:nbsp class __init__ code add man 使用 manage tin
(1)
Q: DisallowedHost: Invalid HTTP_HOST header: ‘x.x.x.x‘. You may need to add ‘x,x,x,x‘ to ALLOWED_HOSTS
A:
tree
.
├── db.sqlite3
├── HelloWorld
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── settings.py
│ ├── settings.pyc
│ ├── urls.py
│ ├── wsgi.py
│ └── wsgi.pyc
├── manage.py
└── myweb_uwsgi.ini
(1) cd HelloWorld/
(2) vi settings.py
(3) ALLOWED_HOSTS = ["*"] 添加 "*"
(2)
标签:nbsp class __init__ code add man 使用 manage tin
原文地址:https://www.cnblogs.com/zdoubly/p/9675915.html