简体   繁体   English

联合组织在Django中如何工作?

[英]How does Syndication work in Django?

Why this (hopefully) isn't a broad question: 为什么这个(希望)不是一个广泛的问题:

I've been looking at the Django source code on syndication . 我一直在查看有关联合发布的Django源代码。 I understand functionally what these feeds are and what they do but I'm not sure how the magic happens. 我从功能上理解了这些提要是什么以及它们做什么,但是我不确定魔术是如何发生的。

Actual question: 实际问题:

What is Django doing under the hood to send these changes out across the wire? Django到底在做什么,以便将这些更改通过网络发送出去? Is Django just creating an object (like an XML file) the Client reads and not even using the network? Django是否只是创建客户端读取的对象(例如XML文件),甚至不使用网络? What mechanism is employed to ensure users get those updates in a 'reasonable' amount of time - is it a combination of the browser (or some other software) knowing to go look for updates while Django diligently adds data to a file, or does Django do most of the work? 采用什么机制来确保用户在“合理的”时间内获得这些更新-是Django努力地将数据添加到文件中时浏览器(或某些其他软件)知道去寻找更新的结合?做大部分工作?

There's no magic, and Django does not do anything to even try to ensure clients get updates in any particular amount of time. 没有魔术,Django甚至不做任何事情来确保客户在任何特定时间内获得更新。

Feeds, like almost everything on the web, are an entirely pull-based mechanism. 提要与网络上的几乎所有内容一样,都是完全基于拉动的机制。 Feed readers are responsible for periodically requesting updates from the client. 提要阅读器负责定期向客户端请求更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法导入django.contrib.syndication.views.feed。 视图在模块django.contrib.syndication.views中不存在。 使用django和rss - Could not import django.contrib.syndication.views.feed. View does not exist in module django.contrib.syndication.views. using django and rss Django联合框架 - Django Syndication Framework 使用Django的联合供稿 - Syndication feeds using Django 如何将图像添加到 Django 的 Syndication RSS-feed - How to add an image to Django's Syndication RSS-feed django联合组织:如何将包含所有提要的查询集发送到模板 - django syndication: how to send a queryset containing all feeds to a template Django联合:我如何避免描述转义? - Django syndication: How do I avoid description escaping? 结合使用django联合模块和mongoengine - Using the django syndication module with mongoengine 在django联合中获取请求参数? - Get request parameter in django syndication? 如何解决 Django 管理员中的“无法导入 django.contrib.syndication.views.feed”错误? - How to resolve “Could not import django.contrib.syndication.views.feed” error in Django admin? Django企业联合框架:如何使用新的基于类的提要视图? - Django syndication framework: How do I use the new class-based feed views?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM