{ "info": { "author": "Jes\u00fas Espino Garc\u00eda", "author_email": "jespinog@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "Django Kaleidos Videos\n======================\n\n.. image:: https://travis-ci.org/kaleidos/django-kvideos.png?branch=master\n :target: https://travis-ci.org/kaleidos/django-kvideos\n\n.. image:: https://coveralls.io/repos/kaleidos/django-kvideos/badge.png?branch=master\n :target: https://coveralls.io/r/kaleidos/django-kvideos?branch=master\n\n.. image:: https://pypip.in/v/django-kvideos/badge.png\n :target: https://crate.io/packages/django-kvideos\n\n.. image:: https://pypip.in/d/django-kvideos/badge.png\n :target: https://crate.io/packages/django-kvideos\n\nDjango Kaleidos Videos is a django application for add videos (from services\nlike youtube or vimeo) to any model.\n\nSuported video services\n-----------------------\n\n* Youtube\n* Vimeo\n\nConfiguration\n-------------\n\nConfigure the app in your setting INSTALLED_APPS::\n\n INSTALLED_APPS = [\n ...\n kvideos,\n ...\n ]\n\nConfigure, if you want, the default video size in your settings.py::\n\n KVIDEOS_DEFAULT_SIZE = \"640x480\"\n\nFor easy access to the videos, add to your models a generic relation to kvideos.models.Video model, for example::\n\n from kvideos.models import Video\n from django.contrib.contenttypes.generic import GenericRelation\n\n class MyModel(models.Model):\n ... # my fields\n videos = GenericRelation(Video)\n\nFor integrate it with the admin panel, you can add a new inline to your models admin classes, for example::\n\n from django.contrib.contenttypes.generic import GenericTabularInline\n from kvideos.models import Video\n \n class VideoInline(GenericTabularInline):\n model = Video\n \n class MyModelAdmin(admin.ModelAdmin):\n model = models.MyModel\n inlines = [MyOtherInlines, ..., VideoInline]\n\nUsage\n-----\n\nNow 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::\n\n