V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-09-02 09:47:05 +08:00 · 1604 次点击
    这是一个创建于 1691 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2019-09-03 10:17:35 +08:00
    bigjack
        1
    bigjack  
       2019-09-02 10:06:23 +08:00
    看下 log 啊
    xpresslink
        2
    xpresslink  
       2019-09-02 10:35:23 +08:00
    是不是用的 gunnicorn? 我也碰到过换成 uWSGI 就可以了,你试一下。
    再有把 nginx 的超时时间,缓冲大小都设置大一些。
    killersdz
        3
    killersdz  
    OP
       2019-09-03 10:17:35 +08:00
    @xpresslink 是的,用的是 gunnicorn,我试一下 uWSGI
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2844 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:24 · PVG 22:24 · LAX 07:24 · JFK 10:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.