Registry / devops / django-embed-video

django-embed-video

JSON →
library1.4.10pypypiunverified

A Django app for embedding YouTube, Vimeo, and SoundCloud videos easily via template tags. Current version: 1.4.10 (released in 2020, maintained by Jazzband). Runs on Python 2.7+ and Django 1.8+. Simple to set up, but configuration and URL validation quirks cause common issues.

pip install django-embed-video
INSTALL
IMPORT
SIG · DJANGO-EMBED-VIDEO
D
django-embed-video
devopspythonv1.4.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

{% embed_video %}
See template tag usage in quickstart
from embed_video import EmbedVideo
This is a template tag library, not a Python class; import via {% load embed_video %} in templates.

Basic usage: add to INSTALLED_APPS, load the template tag library, and use the {% video %} tag.

# In settings.py: INSTALLED_APPS = [ ... 'embed_video', ] # In template: {% load embed_video_tags %} {% video 'https://www.youtube.com/watch?v=abc123' as my_video %} {% if my_video %} {{ my_video|embed:'large' }} {% endif %} {% endvideo %}
Debug
Known issues
gotchaThe {% video %} tag requires a full URL (including protocol). Relative paths will silently fail.
fix
Always provide a complete URL like 'https://www.youtube.com/watch?v=...'
affects: all
deprecatedThe default backend (embed_video.backends.YoutubeBackend) may not work with older YouTube URLs (e.g., youtu.be) without proper regex updates.
fix
Override BACKENDS in settings to include updated patterns or use the 'embed_video.backends.YouTubeBackend' explicitly.
affects: 1.4.x
gotchaIf the video URL returns a 403 or is restricted, the template tag fails silently (returns nothing).
fix
Check the error by using the 'embed_video' template tag with a malformed URL to see the traceback in debug mode.
affects: all
Upgrade
Version history
1.4.10latest on PyPI · released May 7, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
django-embed-video — pip install django-embed-video · libregistry