{ "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
\n {% for video in myobject.videos.all %}\n {% if forloop.first %}\n {{ video.title }}\n {% embed_video video 800x600 %} \n {{ video.description }}\n {% else %}\n {{ video.title }}\n {% embed_video video %} \n {% endif %}\n {% endfor %}\n
\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kaleidos/django-kvideos", "keywords": "django,visit,counter", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-kvideos", "package_url": "https://pypi.org/project/django-kvideos/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-kvideos/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kaleidos/django-kvideos" }, "release_url": "https://pypi.org/project/django-kvideos/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Django application to add videos to models", "version": "0.0.1" }, "last_serial": 771813, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9042e10b18cb6b4a1a3c034721146ec5", "sha256": "8d72ed928ce771a80321b5fc640e2049aeb08ceb211ef9643a18a1f91aedb40e" }, "downloads": -1, "filename": "django-kvideos-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9042e10b18cb6b4a1a3c034721146ec5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4693, "upload_time": "2013-06-15T15:59:31", "url": "https://files.pythonhosted.org/packages/41/bf/1444f49da97bbed33a03c2cf6a348b7da379d9691ba7d717c606a3250a02/django-kvideos-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9042e10b18cb6b4a1a3c034721146ec5", "sha256": "8d72ed928ce771a80321b5fc640e2049aeb08ceb211ef9643a18a1f91aedb40e" }, "downloads": -1, "filename": "django-kvideos-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9042e10b18cb6b4a1a3c034721146ec5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4693, "upload_time": "2013-06-15T15:59:31", "url": "https://files.pythonhosted.org/packages/41/bf/1444f49da97bbed33a03c2cf6a348b7da379d9691ba7d717c606a3250a02/django-kvideos-0.0.1.tar.gz" } ] }