zoukankan      html  css  js  c++  java
  • Django使用问题记录

    (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)

    There are no shortcuts to any place worth going. -- Beverly Sills
  • 相关阅读:
    Samba
    百度贴吧
    baidu.com关键字查询
    vim 删除每行开头结尾空格
    read line(逐行读取)
    pycharm 激活
    rsync 启动脚本
    收藏
    elk
    sql is null
  • 原文地址:https://www.cnblogs.com/zdoubly/p/9675915.html
Copyright © 2011-2022 走看看