Django 中的通用进度条
我想制作一个小型 Web 前端,用于使用 Django 为我的服务器复制(rsync)和编码(ffmpeg)文件。
我想跟踪流程的进度。
我看到了一些 jquery 脚本,但它们被设计为用于上传,而且我不知道足够的 javascript 来修改这些脚本以满足我的需要。
我想编写一个脚本,从文本文件中检索任务状态并输出进度条,但我不知道从哪里开始。
有人知道一个好的入门教程吗?
抱歉我的英语不好。
I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server using Django.
And I want to keep track of the progress of the processes.
I saw a few jquery-scripts, but they are designed to be used with uploads, and I don't know enough javascript to modify these scripts for my needs.
I want to write a script that retrieves the task status from a textfile and outputs a progressbar, but I've got no idea where to start.
Does somebody know a good tutorial to start with?
And sorry for my poor english.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此处的代码 http://www.djangosnippets.org/snippets/679/,它说“上传多部分表单的进度”,但没有任何特定于表单的内容,您可以在任何地方使用它,只需进行一些调整。
一般概念是:
See the code here http://www.djangosnippets.org/snippets/679/, it says "upload progress for multipart forms" but there is nothing specific to forms, you can use it anywhere with few tweaks.
General concept is: