码迷,mamicode.com
首页 > 其他好文 > 详细

Django使用问题记录

时间:2018-09-19 19:44:42      阅读:114      评论:0      收藏:0      [点我收藏+]

标签: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)

 

Django使用问题记录

标签:nbsp   class   __init__   code   add   man   使用   manage   tin   

原文地址:https://www.cnblogs.com/zdoubly/p/9675915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!