We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我知道该线程很旧,但要回答它:
我发现了这个:
http://dajaxproject.com/
示例网站:
ajax.py
html
javascript
我无法让它与“生产标准”一起工作...
now.js 的真正魔力还在于,两边都有 JS,因此没有要转换的对象/( un)serialize
我在想关于这样的设置:
DJANGO <-> NODEJS <->现在<->浏览器
Django 可以将序列化为 json 的对象发送到节点,节点将完成剩下的工作...
我想这会有点棘手...我也想过相反的方式:意味着获得所有 django 好的功能(模型,(自动)管理,模板,url,中间件...)
我找不到像 django (contrib) admin 一样好的东西!如果有人知道吗?
I know the thread is pretty old but to answer it :
I found this :
http://dajaxproject.com/
example from the website :
ajax.py
html
javascript
I couldn't get it to work with "production standards" ...
The real magic of now.js is also that you've got JS on both side and thus no objects to convert/(un)serialize
I was thinking about a setup like this :
DJANGO <-> NODEJS <-> NOW <-> BROWSER
Django could send objects serialized as json to node who would do the rest ...
I guess that would be somewhat tricky ... I also thought about going the other way around : meaning getting all django nice features (models,(auto)admin,templates,urls,middleware...)
I couldn't find anything as nice as django (contrib) admin !! If anyone knows ?