Django文件管理器的视频扩展。

djangocms-filer-video的Python项目详细描述


djangocms文件服务器视频图片::https://travis-ci.org/air-mark/djangocms-filer-video.svg?branch=master
:目标:https://travis ci.org/air mark/djangocms filer video
…图片::https://coveralls.io/repos/air-mark/djangocms-filer-video/badge.svg?branch=master&service=github
:目标:https://coveralls.io/github/air-mark/djangocms-filer-video?branch=master



快速启动
********


。安装“djangocms filer video”(djangocms文件服务器视频)`:







或从源代码





在django设置中将“djangocms_filer_video”添加到“installed_apps”。将视频字段添加到文件管理器设置到设置文件。注意:顺序很重要。

::


filer_file_models=(
“filer.image”、
“djangocms_filer_video.videofile”、
“filer.file”、




。模板标记的用法:



{%load filer_video_tags%}
{%video_thumbnail video'1280x0''mp4'作为video_large_mp4%}
{%video_thumbnail video'640x0''mp4'作为video_small_mp4%}
<;div class="product__video-in">
<;中新网
<;
<;
<;lt;source src={{{{{video\u小mp4.meta_小mp4.meta_小mp4.meta_小mp4.meta_小mp4.meta_小mp4.meta}}“muted=”muted=“muted”招贴{{{{{海报}}}}}<;source src={{{{{video小mp4.mp4.file.url}”data large={{{{{{video大mp4.mp4.mp4.file.file.file.url}}}“中新网视频视频{{{{video小mp4.mp4.mp4 small_mp4.video_format}“>;
<;/video>;
<;/div>;

。模型字段的用法




from django.db import models
from djangocms_filer_video.fields.video import filervideofilefield




class examplemodel(models.model):
main_video=filervideofilefield(verbose_name=”main video”),blank=true,null=true,
on_delete=models.set_null,
related_name='post_properties_video')



release 0.1(2019年1月17日)
=-


-初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Jsonify使用Jackson来定义嵌套对象   在Swing中禁用java图形调试   java Selenium Webdriver拖放在Jenkins上不起作用   java我对一个显示器的问题有一个非常不切实际的询问   java增强的“for”循环导致ArrayIndexOutOfBoundsException   ArrayAdapter适用于Java中的安卓编程,字符串数组   linux在Ubuntu上通过PulseAudio播放Java音频文件时出错   java在Spring应用程序中加载内部(类路径)和外部属性文件   java使用Maven连接到mySQL   Java应用程序的设计   websocket在电报api java中与dc的连接   java XMLStreamException,因为xml中的(&N)   java从控制台输出到JTextArea   Java导出文本文件   java实现parseInt方法   java为什么servlet容器会同步对特定资源/servlet的多个请求的访问?   循环中的Java“while”变量   用Java编程一个国际象棋游戏,gameOver布尔不起作用   java如何获得真正的JPanel大小?