{ "info": { "author": "Mishbah Razzaque", "author_email": "mishbahx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "=============================\ndjangocms-youtube\n=============================\n\n.. image:: http://img.shields.io/travis/mishbahr/djangocms-youtube.svg?style=flat-square\n :target: https://travis-ci.org/mishbahr/djangocms-youtube/\n\n.. image:: http://img.shields.io/pypi/v/djangocms-youtube.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-youtube/\n :alt: Latest Version\n\n.. image:: http://img.shields.io/pypi/dm/djangocms-youtube.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-youtube/\n :alt: Downloads\n\n.. image:: http://img.shields.io/pypi/l/djangocms-youtube.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-youtube/\n :alt: License\n\n.. image:: http://img.shields.io/coveralls/mishbahr/djangocms-youtube.svg?style=flat-square\n :target: https://coveralls.io/r/mishbahr/djangocms-youtube?branch=master\n\nYouTube embed plugin for your django-cms powered site with options for custom video thumbnails, analytics, SEO and more.\n\nQuickstart\n----------\n\n1. Install ``djangocms-youtube``::\n\n pip install djangocms-youtube\n\n2. Add ``djangocms_youtube`` to ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n 'djangocms_youtube',\n ...\n )\n\n3. Sync database (requires ``south>=1.0.1`` if you are using Django 1.6.x)::\n\n python manage.py migrate\n\n\n4. Plugin requires Server API key to be able to use the YouTube Data API::\n\n DJANGOCMS_YOUTUBE_API_KEY = ''\n\nYou can register an app via https://developers.google.com/youtube/registering_an_application\n\nFeatures\n--------\nReduce Page Load Time\n=====================\n\nWhen you embed any YouTube video on your website using standard IFRAME tags, you\u2019ll be surprised to know how much extra weight that YouTube video will add to your page. The resources (CSS, images and JavaScript) will download even if the visitor on your website has chosen not to watch the embedded YouTube video.\n\n\n.. image:: http://mishbahr.github.io/assets/djangocms-youtube/thumbnail/djangocms-youtube-004.png\n :target: http://mishbahr.github.io/assets/djangocms-youtube/djangocms-youtube-004.png\n :width: 768px\n :align: center\n\ndjangocms-youtube uses a clever workaround to reduce the time it takes to initially load the YouTube video player. Instead of embedding the full Youtube video player, it displays just the thumbnail images of the video and a \u201cplay\u201d icon is placed over the video so that it looks like a video player.\n\n.. image:: http://mishbahr.github.io/assets/djangocms-youtube/thumbnail/djangocms-youtube-001.png\n :target: http://mishbahr.github.io/assets/djangocms-youtube/djangocms-youtube-001.png\n :width: 768px\n :align: center\n\nWhen the user hits the play button, the video thumbnail is replaced with the standard YouTube video player. The extra resources are thus loaded only when the user has decided to play the embedded video and not otherwise.\n\nNote: Mobile devices require two taps to play the video. Tap the image once to remove it and display the video player. Then, tap the play button to begin the video.\n\nHigh Resolution Thumbnail\n=========================\n\nFetches the highest resolution thumbnail available from YouTube for a given video with options for custom video thumbnails using ``django-filer``.\n\n.. code-block::\n\n {\n \"default\": {\n \"url\": \"https://i.ytimg.com/vi/9bZkp7q19f0/default.jpg\",\n \"width\": 120,\n \"height\": 90\n },\n \"high\": {\n \"url\": \"https://i.ytimg.com/vi/9bZkp7q19f0/hqdefault.jpg\",\n \"width\": 480,\n \"height\": 360\n },\n \"medium\": {\n \"url\": \"https://i.ytimg.com/vi/9bZkp7q19f0/mqdefault.jpg\",\n \"width\": 320,\n \"height\": 180\n },\n \"maxres\": {\n \"url\": \"https://i.ytimg.com/vi/9bZkp7q19f0/maxresdefault.jpg\",\n \"width\": 1280,\n \"height\": 720\n },\n \"standard\": {\n \"url\": \"https://i.ytimg.com/vi/9bZkp7q19f0/sddefault.jpg\",\n \"width\": 640,\n \"height\": 480\n }\n }\n\n\nSchema.org Integration\n======================\n\nFull support for schema.org ``videoObject`` markup.\n\n.. code-block::\n\n
\n \n \n \n \n \n \n \n \n
\n\nSee https://developers.google.com/webmasters/videosearch/schema\n\n\nVideo Endscreen\n===============\n\n.. image:: http://mishbahr.github.io/assets/djangocms-youtube/thumbnail/djangocms-youtube-002.png\n :target: http://mishbahr.github.io/assets/djangocms-youtube/djangocms-youtube-002.png\n :width: 768px\n :align: center\n\nPlugin can have child plugins (i.e other plugins placed inside this plugin), rendered as an overlay, when the video finishes. You can disable this functionality by overriding ``DJANGOCMS_YOUTUBE_ALLOW_CHILDREN`` in your ``settings.py`` file\n\nGoogle Analytics\n================\n\n.. image:: http://mishbahr.github.io/assets/djangocms-youtube/thumbnail/djangocms-youtube-003.png\n :target: http://mishbahr.github.io/assets/djangocms-youtube/djangocms-youtube-003.png\n :width: 768px\n :align: center\n\nAutomatically publishes the metrics listed below to your Google Analytics account.\n\n.. code-block::\n\n + Play\n + 10% watched\n + 25% watched\n + 50% watched\n + 75% watched\n + 90% watched\n + Watch to end\n\nMake sure you have installed the Google Analytics tracking scripts.\n\nSee https://developers.google.com/analytics/devguides/collection/analyticsjs/\n\n\nVideo Sitemap\n=============\n\nGenerate a sitemap for your YouTube videos.\n\n.. image:: http://mishbahr.github.io/assets/djangocms-youtube/thumbnail/djangocms-youtube-005.png\n :target: http://mishbahr.github.io/assets/djangocms-youtube/djangocms-youtube-005.png\n :width: 768px\n :align: center\n\n**Video Sitemap Configuration**\n\nImport ``CMSVideoSitemap`` from ``djangocms_youtube.video_sitemap`` to the top of your main ``urls.py``\n\n.. code-block::\n\n from djangocms_youtube.video_sitemap import CMSVideoSitemap\n\nAdd ``djangocms_youtube.views.video_sitemap`` view to your urlpatterns.\n\n.. code-block::\n\n from djangocms_youtube.views import video_sitemap\n\n video_sitemaps = {\n 'cmspages': CMSVideoSitemap,\n }\n\n urlpatterns = patterns(\n '',\n url(r'^videos/sitemap\\.xml$', video_sitemap, {'sitemaps': video_sitemaps},\n name='djangocms_youtube.views.video_sitemap'),\n )\n\n**Placeholders outside the CMS Pages**\n\nA simple example for ``aldryn-newsblog``\n\n.. code-block::\n\n \u200bfrom djangocms_youtube.video_sitemap import VideoSitemap\n from aldryn_newsblog.models import Article\n\n \u200b\n class NewsblogVideoSitemap(VideoSitemap):\n model = Article\n \u200b\n def get_queryset(self):\n queryset = super(NewsblogVideoSitemap, self).get_queryset()\n language = self.get_language()\n queryset = queryset.translated(language)\n return queryset.published()\n \u200b\n def location(self, item):\n return item.get_absolute_url(self.get_language())\n\n\nYou may also like...\n--------------------\n\n* djangocms-disqus - https://github.com/mishbahr/djangocms-disqus\n* djangocms-fbcomments - https://github.com/mishbahr/djangocms-fbcomments\n* djangocms-forms \u2014 https://github.com/mishbahr/djangocms-forms\n* djangocms-gmaps \u2014 https://github.com/mishbahr/djangocms-gmaps\n* djangocms-instagram \u2014 https://github.com/mishbahr/djangocms-instagram\n* djangocms-responsive-wrapper \u2014 https://github.com/mishbahr/djangocms-responsive-wrapper\n* djangocms-twitter2 https://github.com/mishbahr/djangocms-twitter2\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mishbahr/djangocms-youtube", "keywords": "djangocms-youtube", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "djangocms-youtube", "package_url": "https://pypi.org/project/djangocms-youtube/", "platform": "", "project_url": "https://pypi.org/project/djangocms-youtube/", "project_urls": { "Homepage": "https://github.com/mishbahr/djangocms-youtube" }, "release_url": "https://pypi.org/project/djangocms-youtube/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "YouTube embed plugin for your django-cms powered site with options for custom video thumbnails, analytics, SEO and more.", "version": "0.2.1" }, "last_serial": 3048710, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "80e07dcda15b4c8e15c1d67419c2ca71", "sha256": "52a075e5081a71ecb468c51e1f13b5ce570d53efba54105a341f42914a2a98f7" }, "downloads": -1, "filename": "djangocms-youtube-0.1.0.tar.gz", "has_sig": false, "md5_digest": "80e07dcda15b4c8e15c1d67419c2ca71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 143697, "upload_time": "2015-08-22T21:30:24", "url": "https://files.pythonhosted.org/packages/2f/2d/5424faeeb4e31f2b532deb105efc50d3d1809975f35b0d625f7e7faca249/djangocms-youtube-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7958211c82a5aeee1b03fd7ebec4bec0", "sha256": "bee66e8620f16eeeb95f692ab038e40636361e82e59b715967c279de7ea04eb8" }, "downloads": -1, "filename": "djangocms-youtube-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7958211c82a5aeee1b03fd7ebec4bec0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144387, "upload_time": "2015-08-23T23:23:20", "url": "https://files.pythonhosted.org/packages/11/67/43536d9cb5027c0059472b51af4c533994daa61437ffc2ce7c53cc70891d/djangocms-youtube-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e6a10327ae6be29fe2db6c11078865b9", "sha256": "c2e524b07de6eeb0b820a8c28e7e3b7db069793835810519ca7a9d7e4b8c82f8" }, "downloads": -1, "filename": "djangocms-youtube-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e6a10327ae6be29fe2db6c11078865b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 146530, "upload_time": "2015-09-19T22:25:30", "url": "https://files.pythonhosted.org/packages/2e/e6/02f45986a5dae06fe2fc61e676eace83d2496cd6e20595f9b4301286fb66/djangocms-youtube-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "52f61c852415c1cf985d6a853a9b8eda", "sha256": "a4f8b90d0374abe879882bb5666a6c9462fd33c11f0c0fa7b731d33b45ecf063" }, "downloads": -1, "filename": "djangocms_youtube-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52f61c852415c1cf985d6a853a9b8eda", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 153674, "upload_time": "2017-07-25T22:51:15", "url": "https://files.pythonhosted.org/packages/ec/40/6b04c26cfd5e76eb49434b3edbe2e280749dfbdb2a00e79cc76453a16a9e/djangocms_youtube-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2df652bf8f1cbb3b2016afee9c365c48", "sha256": "0df8bdf8b5f88a13fd06bc9956bafaa708622c10aa6a2da3b3f03560a67e662c" }, "downloads": -1, "filename": "djangocms-youtube-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2df652bf8f1cbb3b2016afee9c365c48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 146347, "upload_time": "2017-07-25T22:51:04", "url": "https://files.pythonhosted.org/packages/6f/fd/d94685e5876d817df87de4d88b1a0d70dc5c56a3efd8ddc884e6d0de17b8/djangocms-youtube-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "52f61c852415c1cf985d6a853a9b8eda", "sha256": "a4f8b90d0374abe879882bb5666a6c9462fd33c11f0c0fa7b731d33b45ecf063" }, "downloads": -1, "filename": "djangocms_youtube-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52f61c852415c1cf985d6a853a9b8eda", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 153674, "upload_time": "2017-07-25T22:51:15", "url": "https://files.pythonhosted.org/packages/ec/40/6b04c26cfd5e76eb49434b3edbe2e280749dfbdb2a00e79cc76453a16a9e/djangocms_youtube-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2df652bf8f1cbb3b2016afee9c365c48", "sha256": "0df8bdf8b5f88a13fd06bc9956bafaa708622c10aa6a2da3b3f03560a67e662c" }, "downloads": -1, "filename": "djangocms-youtube-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2df652bf8f1cbb3b2016afee9c365c48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 146347, "upload_time": "2017-07-25T22:51:04", "url": "https://files.pythonhosted.org/packages/6f/fd/d94685e5876d817df87de4d88b1a0d70dc5c56a3efd8ddc884e6d0de17b8/djangocms-youtube-0.2.1.tar.gz" } ] }