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

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

  •  
  •   Yan_6 · 2012-06-27 07:56:43 +08:00 · 4065 次点击
    这是一个创建于 4337 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    1970-01-01 08:00:00 +08:00
    xiaket
        1
    xiaket  
       2012-06-27 08:15:05 +08:00   ❤️ 1
    django和ror都是后端框架, 和前端展示效果完全没关系. 至于ajax, 也就是一个稍稍特殊一点的HTTP请求, 任何后端框架都能够处理好, django自然也不例外.
    Yan_6
        2
    Yan_6  
    OP
       2012-06-27 08:33:29 +08:00
    @xiaket 没看过Ruby及ROR,看网上的资料说是ror对ajax提供了很好的支持,我看了django book,貌似根本没提怎么支持ajax。
    iiduce
        3
    iiduce  
       2012-06-27 08:47:33 +08:00
    @Yan_6 在django中使用ajax挺方便的,我没有用到额外的类库。

    可能需要注意的一个地方是,CSRF的配置使用
    youngershen
        4
    youngershen  
       2012-06-27 08:57:12 +08:00
    比较炫怎么说?
    crossd
        5
    crossd  
       2012-06-27 09:01:46 +08:00
    hu437
        6
    hu437  
       2012-06-27 09:41:40 +08:00
    后台程序和ajax没有关系,ajax的本质还是http请求,只有支持AJAX就支持AJAX
    Yan_6
        7
    Yan_6  
    OP
       2012-06-27 12:26:59 +08:00
    看了看官方的文档,知道怎么回事了,谢谢大家了!@xiaket @iiduce @youngershen @crossd @hu437
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1439 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:15 · PVG 01:15 · LAX 10:15 · JFK 13:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.