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

最近想写一个网站,决定使用django框架,看了这个帖子http://www.v2ex.com/t/33748#reply14,感觉ruby做的确实是比较炫,但是不知道django是怎么样和ajax打交道的,是用了什么额外的库吗?

  •  
  •   Yan_6 · Jun 27, 2012 · 4844 views
    This topic created in 5065 days ago, the information mentioned may be changed or developed.
    7 replies    1970-01-01 08:00:00 +08:00
    xiaket
        1
    xiaket  
       Jun 27, 2012   ❤️ 1
    django和ror都是后端框架, 和前端展示效果完全没关系. 至于ajax, 也就是一个稍稍特殊一点的HTTP请求, 任何后端框架都能够处理好, django自然也不例外.
    Yan_6
        2
    Yan_6  
    OP
       Jun 27, 2012
    @xiaket 没看过Ruby及ROR,看网上的资料说是ror对ajax提供了很好的支持,我看了django book,貌似根本没提怎么支持ajax。
    iiduce
        3
    iiduce  
       Jun 27, 2012
    @Yan_6 在django中使用ajax挺方便的,我没有用到额外的类库。

    可能需要注意的一个地方是,CSRF的配置使用
    youngershen
        4
    youngershen  
       Jun 27, 2012
    比较炫怎么说?
    hu437
        6
    hu437  
       Jun 27, 2012
    后台程序和ajax没有关系,ajax的本质还是http请求,只有支持AJAX就支持AJAX
    Yan_6
        7
    Yan_6  
    OP
       Jun 27, 2012
    看了看官方的文档,知道怎么回事了,谢谢大家了!@xiaket @iiduce @youngershen @crossd @hu437
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 07:33 · PVG 15:33 · LAX 00:33 · JFK 03:33
    ♥ Do have faith in what you're doing.