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