Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django application to add videos to models

Project Description

Django Kaleidos Videos is a django application for add videos (from services like youtube or vimeo) to any model.

Suported video services

  • Youtube
  • Vimeo


Configure the app in your setting INSTALLED_APPS:


Configure, if you want, the default video size in your


For easy access to the videos, add to your models a generic relation to kvideos.models.Video model, for example:

from kvideos.models import Video
from django.contrib.contenttypes.generic import GenericRelation

class MyModel(models.Model):
    ... # my fields
    videos = GenericRelation(Video)

For integrate it with the admin panel, you can add a new inline to your models admin classes, for example:

from django.contrib.contenttypes.generic import GenericTabularInline
from kvideos.models import Video

class VideoInline(GenericTabularInline):
    model = Video

class MyModelAdmin(admin.ModelAdmin):
    model = models.MyModel
    inlines = [MyOtherInlines, ...,  VideoInline]


Now you can add videos to any of your models, and can show this on your web page througth the embed_video template tag, for example:

  {% for video in myobject.videos.all %}
    {% if forloop.first %}
      {{ video.title }}
      {% embed_video video 800x600 %} <!-- Big video first -->
      {{ video.description }}
    {% else %}
      {{ video.title }}
      {% embed_video video %} <!-- Default size videos -->
    {% endif %}
  {% endfor %}

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.7 kB) Copy SHA256 Hash SHA256
Source None Jun 15, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting