V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
xiqingongzi
0D
V2EX  ›  Python

Django 2.0 发布了

  •  
  •   xiqingongzi ·
    bestony · Dec 3, 2017 via iPhone · 6408 views
    This topic created in 3078 days ago, the information mentioned may be changed or developed.
    https://docs.djangoproject.com/en/stable/releases/2.0/


    顺便问一句,国内好像没有成气候的 Django 社区?类似 Ruby China 那样
    25 replies    2017-12-06 17:39:07 +08:00
    no13bus
        1
    no13bus  
       Dec 3, 2017
    有的。django-china
    xiqingongzi
        2
    xiqingongzi  
    OP
       Dec 3, 2017 via iPhone
    @no13bus 谢谢,去看了一眼,原来域名改成了 python88。。。不如 django-china
    Sanko
        3
    Sanko  
       Dec 3, 2017 via Android
    围观
    ballshapesdsd
        4
    ballshapesdsd  
       Dec 3, 2017
    @xiqingongzi 怎么跟 v2 这么像。。
    toptyloo
        5
    toptyloo  
       Dec 3, 2017 via Android
    @ballshapesdsd v2 是用 Python 写的
    xiqingongzi
        6
    xiqingongzi  
    OP
       Dec 3, 2017 via iPhone
    @ballshapesdsd 不知道,参考了呗
    hsuan
        7
    hsuan  
       Dec 3, 2017
    用 flask
    doubleflower
        8
    doubleflower  
       Dec 3, 2017 via Android
    以前用过几年.django 感觉越来越臃肿啊
    KgM4gLtF0shViDH3
        9
    KgM4gLtF0shViDH3  
       Dec 3, 2017 via Android
    django 细节处理的真好
    CatCode
        10
    CatCode  
       Dec 3, 2017
    热烈庆祝~~
    fzinfz
        11
    fzinfz  
       Dec 3, 2017 via iPad
    Mobile-friendly contrib.admin¶

    The admin is now responsive and supports all major mobile devices. Older browsers may experience varying levels of graceful degradation.

    好评,admin 支持手机了~
    janxin
        12
    janxin  
       Dec 3, 2017
    已经用上 2.0 了,还是挺好的,过渡难度小
    janxin
        13
    janxin  
       Dec 3, 2017
    @doubleflower 抛弃掉 py2,起码代码能少很多行
    ZeoKarl
        14
    ZeoKarl  
       Dec 3, 2017
    终于砍掉 py2 支持
    xiongharry
        15
    xiongharry  
       Dec 4, 2017
    @doubleflower 一站式提供这么多功能,相对臃肿是必然的。
    notes
        16
    notes  
       Dec 4, 2017 via Android
    django2 都出来了啊,1.8 我还没用上呢
    rajab
        17
    rajab  
       Dec 4, 2017 via Android
    +++
    skinfiter
        18
    skinfiter  
       Dec 4, 2017
    吓得我赶紧下载了个 python3
    mutoulbj
        19
    mutoulbj  
       Dec 4, 2017
    如果 Django 能把模块也做成 Plugin 机制的是不是会好很多。

    毕竟 Template 已经很少用了。

    很多时候也只想用它的 ORM。
    xiqingongzi
        20
    xiqingongzi  
    OP
       Dec 4, 2017 via iPhone
    @mutoulbj 你可以在 installed_apps 中删除相关的应用吧?
    ethusdt
        21
    ethusdt  
       Dec 4, 2017
    流行 Python Web 开发框架 Django 释出了 ( https://docs.djangoproject.com/en/2.0/releases/2.0/) 2.0 版本。主要变化包括:停止支持 Python 2 系列,Django 1.11.x 是支持 Python 2.7 的最后版本,Django 2.0 支持 Python 3.4、3.5 和 3.6,其中 Python 3.4 将于 2019 年 3 月结束支持,因此 Django 2.0 也将是最后一个支持 Python 3.4 的版本。开发者还建议第三方库开发者停止支持 1.11 之前的版本。Django 2.0 的主要新特性包括:简化 URL 路由语法,移动友好的 contrib.admin,等等

    http://www.solidot.org/story?sid=54720
    find456789
        22
    find456789  
       Dec 4, 2017
    django-1.11.8.zip
    django-2.0.zip

    2.0 的体积比 1.x 的体积还要大, 按理说抛弃了 py2,体积应该会缩小呀

    这是怎么会是
    xiqingongzi
        23
    xiqingongzi  
    OP
       Dec 4, 2017 via iPhone
    @find456789 新的 Feature,需要新的应用。而且兼容应该是其它的 package 来实现的,只是去掉一部分代码,可能不如新增的代码多。
    mutoulbj
        24
    mutoulbj  
       Dec 4, 2017
    @xiqingongzi 那只是没有用它,不代表是没有安装啊
    pythme
        25
    pythme  
       Dec 6, 2017
    我真的赶紧下载了 python3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2633 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 16:09 · PVG 00:09 · LAX 09:09 · JFK 12:09
    ♥ Do have faith in what you're doing.