hellhound / django-embed-video

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

Home Page:http://django-embed-video.rtfd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-embed-video

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()
    

About

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

http://django-embed-video.rtfd.org/

License:MIT License


Languages

Language:Python 88.0%Language:Shell 12.0%