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

django 用 mysql 原生数据卡主

  •  
  •   334862132 · Nov 26, 2018 · 2244 views
    This topic created in 2873 days ago, the information mentioned may be changed or developed.
    django2.0 开发项目,有人用模型,有人用 mysql 原生写,django 里面 mysql 原生写的代码不跟随数据库更新,重新启动 django 后数据才会更新,求个解决办法
    NaVient
        1
    NaVient  
       Nov 26, 2018   ❤️ 1
    看看是不是事务没有提交
    xpresslink
        2
    xpresslink  
       Nov 26, 2018   ❤️ 1
    楼主说的什么乱七八糟的?
    SQL 插在代码里面,当然要重起进程才能生效。
    xpresslink
        3
    xpresslink  
       Nov 26, 2018   ❤️ 1
    楼主说的用 mysql 原生写是直接用的 pymysql 接口直接写的,还是用的 django 的 db.connection?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5733 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:48 · PVG 16:48 · LAX 01:48 · JFK 04:48
    ♥ Do have faith in what you're doing.