推荐学习书目
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 · 5055 views
    This topic created in 4290 days ago, the information mentioned may be changed or developed.
    16 replies    2014-09-13 10:51:55 +08:00
    ljcarsenal
        1
    ljcarsenal  
       Sep 3, 2014
    哎 django升级好快。。。
    ericls
        2
    ericls  
    OP
       Sep 3, 2014 via Android
    @ljcarsenal 很快么? 我django1.7从beta开始用 用了好久了。。
    cbsw
        3
    cbsw  
       Sep 3, 2014
    项目还在用1.3的路过,会有各种蛋疼的问题
    cbsw
        4
    cbsw  
       Sep 3, 2014
    内置了 Migration 不错诶,可以不用再单独安装 south 了
    ericls
        5
    ericls  
    OP
       Sep 3, 2014 via Android
    @cbsw 比south好用 可以自动探测是否是改field名字
    以前south也可以 但是要自己写一些东西
    isaced
        6
    isaced  
       Sep 3, 2014
    终于发布了!
    ChiangDi
        7
    ChiangDi  
       Sep 3, 2014
    Good,但是 Pycarm 好像现在只支持到 1.65.
    ChiangDi
        8
    ChiangDi  
       Sep 3, 2014
    @ChiangDi Pycharm
    ericFork
        9
    ericFork  
       Sep 3, 2014
    终于发布了,等了好久了
    magine
        10
    magine  
       Sep 3, 2014
    1.5的生涯结束了。
    alsotang
        11
    alsotang  
       Sep 3, 2014
    Rails 万岁
    eriale
        12
    eriale  
       Sep 3, 2014
    瞄了一眼,就是增加了一个migration比较有帮助,谁来说说其他变化有啥意义?
    siteshen
        13
    siteshen  
       Sep 3, 2014
    @ericls 我用south时一直都是自动生成migration文件的,印象中没有需要调整的地方。
    ericls
        14
    ericls  
    OP
       Sep 3, 2014 via Android
    @siteshen 这个肯定的啊 但是不能识别你是否是更改了field名称 还是其他的动作
    risent
        15
    risent  
       Sep 6, 2014
    @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
        16
    z7039585  
       Sep 13, 2014
    从1.7入坑的表示压力不大 - -
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1135 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 23:03 · PVG 07:03 · LAX 16:03 · JFK 19:03
    ♥ Do have faith in what you're doing.