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

为什么我的 Flask App 直接运行可以用 db.session.add(user) 写入数据库,而在服务器上用 Gunicron 部署时却不行呢?

  •  
  •   LokiSharp ·
    LokiSharp · Feb 24, 2016 · 3765 views
    This topic created in 3883 days ago, the information mentioned may be changed or developed.
    由 Flask + Gunicron + Supervisor + Nginx 部署

    代码在这 https://github.com/LokiSharp/Sharloki-Blog



    这一段是无法写入数据库的部分
    3 replies  •  2016-02-25 11:49:30 +08:00
    sunus
        1
    sunus  
       Feb 24, 2016
    @LokiSharp 看下出错信息呢?
    chy373180
        2
    chy373180  
       Feb 24, 2016
    commit?
    phithon
        3
    phithon  
       Feb 25, 2016
    没有 commit
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4035 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    ♥ Do have faith in what you're doing.