django-embed-video 1.0.0

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

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

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. If you want to detect HTTP/S in template tags, you have to set request context processor in settings.TEMPLATE_CONTEXT_PROCESSORS:

    TEMPLATE_CONTEXT_PROCESSORS = (
        ...
        'django.core.context_processors.request',
    )
    
  4. Usage of 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 }}
    
      {% video my_video "large" %}
    {% endvideo %}
    
    Or embed shortcut:
    {% video my_video '800x600' %}
    
  5. Usage of model fields

    from django.db import models
    from embed_video.fields import EmbedVideoField
    
    class Item(models.Model):
        video = EmbedVideoField()  # same like models.URLField()
    

Release 1.1.0 (dev)

No changes yet.

Release 1.0.0 (May 01, 2015)

Backward incompatible changes:

  • filter embed_video_tags.embed has been removed
  • changed behaviour of extra params in video tag (#34, #36)

Backward compatible changes:

  • added support for Django 1.7 and Django 1.8
  • added support for Vimeo channels (#47)
  • fix resizing of SoundCloud iframe (#41)

Release 0.11 (July 26, 2014)

  • add support for YouTube mobile urls (#27)
  • fix passing parameters in calling request library (#28)
  • fix validation of urls (#31)

Release 0.10 (May 24, 2014)

  • video tag accepts kwargs (#20)
  • video tag will not crash anymore with None passed as url (#24)

Release 0.9 (Apr. 04, 2014)

  • Add VideoBackend.template_name and rendering embed code from file.
  • Allow relative sizes in template tag (#19).
  • Fix handling invalid urls of SoundCloud. (#21).
  • Catch VideoDoesntExistException and UnknownBackendException in template tags and admin widget.
  • Add base exception EmbedVideoException.

Release 0.8 (Feb. 22, 2014)

  • Add EMBED_VIDEO_TIMEOUT to settings.
  • Fix renderering template tag if no url is provided (#18)
  • If EMBED_VIDEO_TIMEOUT timeout is reached in templates, no exception is raised, error is just logged.
  • Fix default size in template tag. (See more...)

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)

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

Author

Juda Kaleta

Pip

django-embed-video==1.0.0

Classifiers

  • Framework :: Django
  • License :: OSI Approved :: MIT License
  • Programming Language :: Python
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Topic :: Internet :: WWW/HTTP
File Type Python Version Uploaded On Downloads
django_embed_video-1.0.0-py2-none-any.whl Wheel 2.7 May 1, 2015 2,160
django-embed-video-1.0.0.zip Source May 1, 2015 2,156
Version Release Date
1.0.0 May 1, 2015
0.11 July 26, 2014
0.10 May 24, 2014
0.9 April 4, 2014
0.8 Feb. 22, 2014
0.7 Dec. 21, 2013
0.6 Oct. 4, 2013
0.5 Sept. 3, 2013
0.4 Aug. 22, 2013
0.3 Aug. 20, 2013
0.2.0 June 25, 2013
0.1.0 June 1, 2013
0.0.1 June 1, 2013
Date Package Version Action
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.0.1 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.1.0 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.2.0 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.10 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.11 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.6 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.7 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.4 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.5 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.3 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 1.0.0 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.8 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video 0.9 Release Created
Aug. 24, 2015, 11:02 p.m. django-embed-video Package Created