推荐学习书目
› 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 · 6934 views
    This topic created in 3262 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
    no13bus
    Dec 3, 2017
    1
    有的。django-china
    xiqingongzi
    xiqingongzi
    OP
    Dec 3, 2017 via iPhone
    2
    @no13bus 谢谢,去看了一眼,原来域名改成了 python88。。。不如 django-china
    Sanko
    Sanko
    Dec 3, 2017 via Android
    3
    围观
    ballshapesdsd
    ballshapesdsd
    Dec 3, 2017
    4
    @xiqingongzi 怎么跟 v2 这么像。。
    toptyloo
    toptyloo
    Dec 3, 2017 via Android
    5
    @ballshapesdsd v2 是用 Python 写的
    xiqingongzi
    xiqingongzi
    OP
    Dec 3, 2017 via iPhone
    6
    @ballshapesdsd 不知道,参考了呗
    hsuan
    hsuan
    Dec 3, 2017
    7
    用 flask
    doubleflower
    doubleflower
    Dec 3, 2017 via Android
    8
    以前用过几年.django 感觉越来越臃肿啊
    KgM4gLtF0shViDH3
    KgM4gLtF0shViDH3
    Dec 3, 2017 via Android
    9
    django 细节处理的真好
    CatCode
    CatCode
    Dec 3, 2017
    10
    热烈庆祝~~
    fzinfz
    fzinfz
    Dec 3, 2017 via iPad
    11
    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
    janxin
    Dec 3, 2017
    12
    已经用上 2.0 了,还是挺好的,过渡难度小
    janxin
    janxin
    Dec 3, 2017
    13
    @doubleflower 抛弃掉 py2,起码代码能少很多行
    ZeoKarl
    ZeoKarl
    Dec 3, 2017
    14
    终于砍掉 py2 支持
    xiongharry
    xiongharry
    Dec 4, 2017
    15
    @doubleflower 一站式提供这么多功能,相对臃肿是必然的。
    notes
    notes
    Dec 4, 2017 via Android
    16
    django2 都出来了啊,1.8 我还没用上呢
    rajab
    rajab
    Dec 4, 2017 via Android
    17
    +++
    skinfiter
    skinfiter
    Dec 4, 2017
    18
    吓得我赶紧下载了个 python3
    mutoulbj
    mutoulbj
    Dec 4, 2017
    19
    如果 Django 能把模块也做成 Plugin 机制的是不是会好很多。

    毕竟 Template 已经很少用了。

    很多时候也只想用它的 ORM。
    xiqingongzi
    xiqingongzi
    OP
    Dec 4, 2017 via iPhone
    20
    @mutoulbj 你可以在 installed_apps 中删除相关的应用吧?
    ethusdt
    ethusdt
    Dec 4, 2017
    21
    流行 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
    find456789
    Dec 4, 2017
    22
    django-1.11.8.zip
    django-2.0.zip

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

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