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
lin
V2EX  ›  Python

Django or Tornado? Why?

  •  
  •   lin ·
    Quasimo · 2011-12-06 15:40:45 +08:00 · 7168 次点击
    这是一个创建于 4518 天前的主题,其中的信息可能已经有所发展或是发生改变。
    12 条回复    1970-01-01 08:00:00 +08:00
    halida
        1
    halida  
       2011-12-06 16:04:00 +08:00
    他们针对的是不同的需求, 只要稍微熟悉他们一些, 就不会对应用场景产生疑问.
    django比较大, 功能丰富, 适合常见的web开发,
    django具有很好的长连接支持, 适合高性能.
    xiaket
        2
    xiaket  
       2011-12-06 16:06:23 +08:00
    求运行速度, tornado. 求开发速度, django.
    1212e
        3
    1212e  
       2011-12-06 16:13:13 +08:00
    @halida 2个都是django?...
    reorx
        4
    reorx  
       2011-12-06 16:17:56 +08:00
    Tornado is a non-blocking web server bound with some libraries and tools, while Django is a web framework.

    see explanation about frameworks vs. libraries here:
    http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/narr/introduction.html
    xiaket
        5
    xiaket  
       2011-12-06 16:18:08 +08:00
    @1212e 他说的后面那个是tornado
    bruce
        6
    bruce  
       2011-12-06 16:30:54 +08:00
    django is better for beginners.
    halida
        7
    halida  
       2011-12-06 16:47:40 +08:00
    晕, 写错了, 后面那个是tornado....
    feilaoda
        8
    feilaoda  
       2011-12-06 17:10:37 +08:00
    别碰django
    killpanda
        9
    killpanda  
       2011-12-06 18:05:31 +08:00
    @feilaoda 为啥?
    xingzhi
        10
    xingzhi  
       2011-12-13 01:33:27 +08:00
    最近在学习Django,我觉得了解这些优缺点的最好方式就是两者都接触,亲身体验就能得出结论了。
    虽然,时间成本大了:)
    tioover
        11
    tioover  
       2011-12-13 02:56:22 +08:00
    学了django和tornado
    感觉tornado外加各种其它的库也能做出django的效果,虽然没django整合的好
    SQLAlchemy(orm) + elixir(orm简化) + wtforms(表单) + jinja2(模板) + tornado(基础&Server)
    比较而言Django虽然耦合度高,不能自由的选择组件,但是功能统一,比较不折腾。

    都可以学学,新手可以先学django,老手就随便了
    est
        12
    est  
       2011-12-13 08:38:07 +08:00
    django可以用tornado跑。。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5326 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 09:12 · PVG 17:12 · LAX 02:12 · JFK 05:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.