运行轨道服务器?
奇怪的问题,但我正在尝试遵循本教程,该教程解释了如何使用 django 设置 comet。当我尝试做教程时,我只是对一些事情感到困惑。
首先,orbited.cfg 文件去哪里了?我只是将它放在应用程序的根目录中(settings.py 文件等所在的位置)。另外,在 cfg 中,它说使用 localhost 地址作为 http,但我没有运行开发服务器,我可以将我正在使用的 url 放在那里吗?端口问题怎么办?
其次,在教程的最后,它说运行轨道服务器。我该怎么做?我需要提前安装orbited吗?我问这个也是因为 html 文件需要一个 Orbited.js 文件,而我不知道在哪里可以找到它。 Orbited.org 似乎不起作用。谢谢。
Odd question, but I'm trying to follow this tutorial which explains how to set up comet with django. I'm just confused about some stuff when I'm trying to do the tutorial.
Firstly, where does the orbited.cfg file go? I just placed it at the root of my application (where the settings.py file etc. is). Also, in the cfg, It says to use the localhost address as the http, but I'm not running a development server, can I just put the url I'm using there? What about the port issue?
Secondly, at the end of the tutorial, it says to run the orbited server. How do I do this? Do I need to install orbited beforehand? I ask this also because the html file requires an orbited.js file, and I have no clue where to find that. orbited.org doesn't seem to work. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望这不再与OP相关,但谷歌用户可能会发现这很有帮助
,其中 example.cfg 是 Orbited 的配置文件
I hope this is no longer relevant for OP, but googlers may find this helpful
where example.cfg is the config file for orbited