Django app for easy embeding YouTube and Vimeo videos and music fromSoundCloud.
Project description
Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud.
Documentation
Documentation is here: http://django-embed-video.rtfd.org/
Quick start
Install django-embed-video:
pip install django-embed-video
or from sources
pip install git+https://github.com/yetty/django-embed-video.git
Add embed_video to INSTALLED_APPS in your Django settings.
Use template tags:
{% load embed_video_tags %} The video tag: {% video item.video as my_video %} URL: {{ my_video.url }} Thumbnail: {{ my_video.thumbnail }} Backend: {{ my_video.backend }} {% endvideo %} Or embed shortcut: {% video my_video '800x600' %}
Use model fields
from django.db import models from embed_video.fields import EmbedVideoField class Item(models.Model): video = EmbedVideoField() # same like models.URLField()
Release 0.7 (Dec. 21, 2013)
Support for sites running on HTTPS
embed filter is deprecated and replaced by video filter.
caching for whole backends was removed and replaced by caching properties
minor improvements on example project (fixtures, urls)
Release 0.6 (Oct. 04, 2013)
Ability to overwrite embed code of backend
Caching backends properties
PyPy compatibility
Admin video mixin and video widget
Release 0.5 (Sep. 03, 2013)
Added Vimeo thumbnails support
Added caching of results
Added example project
Fixed template tag embed
Fixed raising UnknownIdException in YouTube detecting.
Release 0.4 (Aug. 22, 2013)
Documentation was rewrited and moved to http://django-embed-video.rtfd.org/ .
Custom backends (http://django-embed-video.rtfd.org/en/latest/examples.html#custom-backends).
Improved YouTube and Vimeo regex.
Support for Python 3.
Renamed base to backends.
Release 0.3 (Aug. 20, 2013)
Security fix: faked urls are treated as invalid. See this page for more details.
Fixes:
allow of empty video field.
requirements in setup.py
Added simplier way to embed video in one-line template tag:
{{ 'http://www.youtube.com/watch?v=guXyvo2FfLs'|embed:'large' }}
backend variable in video template tag.
Usage:
{% video item.video as my_video %} Backend: {{ my_video.backend }} {% endvideo %}
Release 0.2 (June 25, 2013)
Support of SoundCloud
Release 0.1 (June 1, 2013)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-embed-video-0.7.tar.gz
.
File metadata
- Download URL: django-embed-video-0.7.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd0c40c16016f34002879679ffa7cb2d071de4226e1a5492eed834d5ba81192 |
|
MD5 | 29a07dd6993a904a38a620ad72b4c6c7 |
|
BLAKE2b-256 | 1f7bd4e1d36e2901e07079ed49572287feb27181b5a0b4267c050e1e8732253b |