skillfed

django-embed-video

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

django-embed-video v1.4.10 77.1K downloads/30d#14,554 on PyPI396
Permissive license Active released

What it is and what it does

django-embed-video is a Django app that simplifies embedding video and audio content from YouTube, Vimeo, and SoundCloud into web pages. It provides template tags and model fields that parse media URLs, extract metadata like thumbnails, and generate the appropriate embed code—eliminating the need to manually construct iframe tags or handle different platform APIs.

The package works by accepting video URLs in templates or model fields, automatically detecting the source platform, and rendering embeds with configurable dimensions. It handles multiple URL formats for each platform, including mobile URLs and platform-specific variations, and can lazy-load embeds to improve page performance. Installation requires adding it to Django's INSTALLED_APPS and optionally configuring the request context processor.

Use it for:

  • Add a video field to a Django model and render embedded videos in templates without writing custom iframe code.
  • Build a content management system where editors paste YouTube or Vimeo URLs and the app automatically generates responsive embeds.
  • Extract and display video thumbnails alongside links in a media gallery or blog post.
  • Support multiple video platforms (YouTube, Vimeo, SoundCloud) in a single template without platform-specific logic.
  • Lazy-load video embeds on a page with many videos to reduce initial load time.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Django template tags and model fields to embed YouTube, Vimeo, and SoundCloud media directly into web pages with automatic URL parsing and thumbnail extraction.

Yes. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and solves a common Django need with low install friction. Use it if your Django project needs to embed videos from YouTube, Vimeo, or SoundCloud—it eliminates boilerplate and handles URL parsing and platform detection automatically.

Install

django-embed-video on PyPI

pip

pip install django-embed-video

uv

uv add django-embed-video

poetry

poetry add django-embed-video

Installing django-embed-video

Before you install

Low friction install with three straightforward runtime dependencies. Maintained actively with recent releases; last commit in April 2026 and version 1.4.10 from May 2024 show ongoing support.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install django-embed-video

# In Django settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = [
    'embed_video',
    # ...
]

# In template:
{% load embed_video_tags %}
{% video "https://www.youtube.com/watch?v=dQw4w9WgXcQ" "800x600" %}

Requires Django to be installed and configured; the request context processor must be set in TEMPLATES settings if you need HTTP/S detection in template tags.

Verify before relying

  • Whether the package handles all current YouTube, Vimeo, and SoundCloud URL formats reliably in production.
  • Performance characteristics when processing many video URLs or thumbnails in a single page render.

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — requests, Django, importlib-metadata
Maintenance actively maintained — 829 days since the last release
Last repo commit
First released
Downloads 77,124/month — #14,554 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_embed_video-1.4.10-py3-none-any.whl

Keywords: youtube, vimeo, video, soundcloud

Development Status :: 5 - Production/StableEnvironment :: PluginsEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 3.2Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTP

Tags

django video embeddingyoutube vimeo django integrationembed video template tagssoundcloud django appdjango media playervideo iframe generator django
django-pluginvideo-embeddingtemplate-tags

More WWW/HTTP packages