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

Django 1.7 released

  •  1
     
  •   ericls ·
    ericls · Sep 3, 2014 · 5468 views
    This topic created in 4472 days ago, the information mentioned may be changed or developed.
    16 replies  •  2014-09-13 10:51:55 +08:00
    ljcarsenal
    ljcarsenal
    Sep 3, 2014
    1
    哎 django升级好快。。。
    ericls
    ericls
    OP
    Sep 3, 2014 via Android
    2
    @ljcarsenal 很快么? 我django1.7从beta开始用 用了好久了。。
    cbsw
    cbsw
    Sep 3, 2014
    3
    项目还在用1.3的路过,会有各种蛋疼的问题
    cbsw
    cbsw
    Sep 3, 2014
    4
    内置了 Migration 不错诶,可以不用再单独安装 south 了
    ericls
    ericls
    OP
    Sep 3, 2014 via Android
    5
    @cbsw 比south好用 可以自动探测是否是改field名字
    以前south也可以 但是要自己写一些东西
    isaced
    isaced
    Sep 3, 2014
    6
    终于发布了!
    ChiangDi
    ChiangDi
    Sep 3, 2014
    7
    Good,但是 Pycarm 好像现在只支持到 1.65.
    ChiangDi
    ChiangDi
    Sep 3, 2014
    8
    @ChiangDi Pycharm
    ericFork
    ericFork
    Sep 3, 2014
    9
    终于发布了,等了好久了
    magine
    magine
    Sep 3, 2014
    10
    1.5的生涯结束了。
    alsotang
    alsotang
    Sep 3, 2014
    11
    Rails 万岁
    eriale
    eriale
    Sep 3, 2014
    12
    瞄了一眼,就是增加了一个migration比较有帮助,谁来说说其他变化有啥意义?
    siteshen
    siteshen
    Sep 3, 2014
    13
    @ericls 我用south时一直都是自动生成migration文件的,印象中没有需要调整的地方。
    ericls
    ericls
    OP
    Sep 3, 2014 via Android
    14
    @siteshen 这个肯定的啊 但是不能识别你是否是更改了field名称 还是其他的动作
    risent
    risent
    Sep 6, 2014
    15
    @eriale 比较有意义的一个就是支持custom lookup了,这样可以很方便的实现自己的一些model field的特殊查询.在此基础上已经将postgresql里面的Array字段内置支持了. 比如官方文档里面演示的,针对Arrary实现的 *len* 这个lookup

    ```
    >>> Post.objects.create(name='First post', tags=['thoughts', 'django'])
    >>> Post.objects.create(name='Second post', tags=['thoughts'])

    >>> Post.objects.filter(tags__len=1)
    [<Post: Second post>]
    ```
    z7039585
    z7039585
    Sep 13, 2014
    16
    从1.7入坑的表示压力不大 - -
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4359 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 03:44 · PVG 11:44 · LAX 19:44 · JFK 22:44
    ♥ Do have faith in what you're doing.