V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2014-09-03 11:22:22 +08:00 · 4253 次点击
    这是一个创建于 3494 天前的主题,其中的信息可能已经有所发展或是发生改变。
    16 条回复    2014-09-13 10:51:55 +08:00
    ljcarsenal
        1
    ljcarsenal  
       2014-09-03 11:25:25 +08:00
    哎 django升级好快。。。
    ericls
        2
    ericls  
    OP
       2014-09-03 12:06:14 +08:00 via Android
    @ljcarsenal 很快么? 我django1.7从beta开始用 用了好久了。。
    cbsw
        3
    cbsw  
       2014-09-03 12:54:29 +08:00
    项目还在用1.3的路过,会有各种蛋疼的问题
    cbsw
        4
    cbsw  
       2014-09-03 13:00:46 +08:00
    内置了 Migration 不错诶,可以不用再单独安装 south 了
    ericls
        5
    ericls  
    OP
       2014-09-03 13:03:24 +08:00 via Android
    @cbsw 比south好用 可以自动探测是否是改field名字
    以前south也可以 但是要自己写一些东西
    isaced
        6
    isaced  
       2014-09-03 13:26:20 +08:00
    终于发布了!
    ChiangDi
        7
    ChiangDi  
       2014-09-03 13:29:35 +08:00
    Good,但是 Pycarm 好像现在只支持到 1.65.
    ChiangDi
        8
    ChiangDi  
       2014-09-03 13:29:51 +08:00
    @ChiangDi Pycharm
    ericFork
        9
    ericFork  
       2014-09-03 13:34:56 +08:00
    终于发布了,等了好久了
    magine
        10
    magine  
       2014-09-03 14:24:12 +08:00
    1.5的生涯结束了。
    alsotang
        11
    alsotang  
       2014-09-03 14:28:47 +08:00
    Rails 万岁
    eriale
        12
    eriale  
       2014-09-03 16:33:42 +08:00
    瞄了一眼,就是增加了一个migration比较有帮助,谁来说说其他变化有啥意义?
    siteshen
        13
    siteshen  
       2014-09-03 18:31:35 +08:00
    @ericls 我用south时一直都是自动生成migration文件的,印象中没有需要调整的地方。
    ericls
        14
    ericls  
    OP
       2014-09-03 20:55:49 +08:00 via Android
    @siteshen 这个肯定的啊 但是不能识别你是否是更改了field名称 还是其他的动作
    risent
        15
    risent  
       2014-09-06 00:30:28 +08:00
    @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  
       2014-09-13 10:51:55 +08:00
    从1.7入坑的表示压力不大 - -
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1482 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:51 · PVG 07:51 · LAX 16:51 · JFK 19:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.