推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
careofzm
V2EX  ›  Python

django swagger docs 有一个坑

  •  
  •   careofzm · Mar 29, 2018 · 4065 views
    This topic created in 3103 days ago, the information mentioned may be changed or developed.
    最近在写项目,搭建了新的服务, 以前都是使用 ip 直接请求的, 后来加上了域名,发现 docs 请求的文档都是, 本地的 ip, 后来在网上一查发现原来,需要在 nginx 中加入参数 proxy_set_header,就可解决:
    server {
    listen 80;
    server_name ******.com;
    location / {
    proxy_set_header Host $host;
    }
    }
    2 replies  •  2018-03-30 10:20:17 +08:00
    ifoolish
        1
    ifoolish  
       Mar 29, 2018 via iPhone
    好巧,我上周也发现并解决了这个问题🤓,我怎么就没想到要发个贴呢
    fanhaipeng0403
        2
    fanhaipeng0403  
       Mar 30, 2018
    mark
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2775 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:41 · PVG 22:41 · LAX 07:41 · JFK 10:41
    ♥ Do have faith in what you're doing.