Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-embed-video

How to install django-embed-video

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-embed-video
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.4 Available View build log
 
Author
Dependencies
Lastest release
version 0.4 on Jan 9th, 2014

Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud.

https://travis-ci.org/yetty/django-embed-video.png?branch=master https://coveralls.io/repos/yetty/django-embed-video/badge.png?branch=master https://pypip.in/v/django-embed-video/badge.png https://pypip.in/d/django-embed-video/badge.png

Documentation

Documentation is here: http://django-embed-video.rtfd.org/

Quick start

  1. Install django-embed-video:

    pip install django-embed-video
    

    or from sources

    pip install git+https://github.com/yetty/django-embed-video.git
    
  2. Add embed_video to INSTALLED_APPS in your Django settings.

  3. 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:
    {{ my_video|embed:'800x600' }}
    
  4. 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.4 (Aug. 22, 2013)
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

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.