Django app for easy embedding YouTube and Vimeo videos and music from SoundCloud.
Find a file
2013-12-01 12:16:27 +01:00
docs Docs for admin mixins 2013-10-04 10:19:30 +02:00
embed_video Fix tests. Closes #14, #13. 2013-12-01 12:16:27 +01:00
example_project Append slash to urls in example project 2013-12-01 12:13:42 +01:00
.coveragerc Omit redundant files in coverage 2013-08-22 14:59:06 +02:00
.gitignore Ignore output of coverage html 2013-07-31 10:14:57 +02:00
.travis.yml Package should be pypy compatibile 2013-09-30 13:06:11 +02:00
CHANGES.rst Release 0.6 2013-10-04 11:10:25 +02:00
LICENSE License 2013-05-31 13:25:11 +02:00
MANIFEST.in manifest 2013-06-01 15:33:46 +02:00
README.rst Remove SSL from link to docs 2013-08-22 10:55:25 +02:00
setup.py Add Django to requirements 2013-12-01 12:14:39 +01:00

django-embed-video
==================

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

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

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:
      {{ my_video|embed:'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()


.. vim: set tw=80: