推荐学习书目
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
killersdz
V2EX  ›  Python

请问 xadmin 本地测试的时候导出 excel 功能正常,放到服务器生产环境下报 500 错误是什么原因,,是 xadmin 的 bug,还是没配置好?

  •  
  •   killersdz · Sep 2, 2019 · 2392 views
    This topic created in 2445 days ago, the information mentioned may be changed or developed.
    3 replies    2019-09-03 10:17:35 +08:00
    bigjack
        1
    bigjack  
       Sep 2, 2019
    看下 log 啊
    xpresslink
        2
    xpresslink  
       Sep 2, 2019
    是不是用的 gunnicorn? 我也碰到过换成 uWSGI 就可以了,你试一下。
    再有把 nginx 的超时时间,缓冲大小都设置大一些。
    killersdz
        3
    killersdz  
    OP
       Sep 3, 2019
    @xpresslink 是的,用的是 gunnicorn,我试一下 uWSGI
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 19:30 · PVG 03:30 · LAX 12:30 · JFK 15:30
    ♥ Do have faith in what you're doing.