djangocms-video


Namedjangocms-video JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/django-cms/djangocms-video
SummaryAdds video plugin to django CMS.
upload_time2023-12-06 22:55:57
maintainerDjango CMS Association and contributors
docs_urlNone
authorDivio AG
requires_python
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ================
django CMS Video
================

|pypi| |build| |coverage|

**django CMS Video** is a set of plugins for `django CMS <http://django-cms.org>`_
that allow you to publish video content on your site (using an HTML5 player by default,
but you can override this in your own templates if required).

It uses files managed by `Django Filer <https://github.com/divio/django-filer>`_.

.. note:: 
        
        This project is endorsed by the `django CMS Association <https://www.django-cms.org/en/about-us/>`_.
        That means that it is officially accepted by the dCA as being in line with our roadmap vision and development/plugin policy. 
        Join us on `Slack <https://www.django-cms.org/slack/>`_.

.. image:: preview.gif


*******************************************
Contribute to this project and win rewards
*******************************************

Because this is a an open-source project, we welcome everyone to
`get involved in the project <https://www.django-cms.org/en/contribute/>`_ and
`receive a reward <https://www.django-cms.org/en/bounty-program/>`_ for their contribution. 
Become part of a fantastic community and help us make django CMS the best CMS in the world.   

We'll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review our `contribution guidelines
<http://docs.django-cms.org/en/latest/contributing/index.html>`_.

We're grateful to all contributors who have helped create and maintain this package.
Contributors are listed at the `contributors <https://github.com/django-cms/djangocms-video/graphs/contributors>`_
section.


Documentation
=============

See ``REQUIREMENTS`` in the `setup.py <https://github.com/divio/djangocms-video/blob/master/setup.py>`_
file for additional dependencies:

|python| |django| |djangocms|

* Django Filer 1.7 or higher

Make sure `django-filer <http://django-filer.readthedocs.io/en/latest/installation.html>`_
is installed and configured appropriately.


Installation
------------

For a manual install:

* run ``pip install djangocms-video``
* add ``djangocms_video`` to your ``INSTALLED_APPS``
* run ``python manage.py migrate djangocms_video``


Configuration
-------------

Note that the provided templates are very minimal by design. You are encouraged
to adapt and override them to your project's requirements.

This addon provides a ``default`` template for all instances. You can provide
additional template choices by adding a ``DJANGOCMS_VIDEO_TEMPLATES``
setting::

    from django.utils.translation import gettext_lazy as _

    DJANGOCMS_VIDEO_TEMPLATES = [
        ('feature', _('Featured Version')),
    ]

You'll need to create the `feature` folder inside ``templates/djangocms_video/``
otherwise you will get a *template does not exist* error. You can do this by
copying the ``default`` folder inside that directory and renaming it to
``feature``.

``MP4``, ``WEBM`` and ``OGV`` files are allowed by default. We recommend
adding all 3 source files for full browser compatibility. You can change
the default setting by overriding::

    DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']

The plugin detects YouTube URLs using a regular expression and canonicalizes
them to `//www.youtube.com/embed/{}` where the placeholder is replaced by the
video id.

The canonical URL can be reconfigured with a configuration setting::

    DJANGOCMS_VIDEO_YOUTUBE_EMBED_URL = '//www.youtube-nocookie.com/embed/{}'

Running Tests
-------------

You can run tests by executing::

    virtualenv env
    source env/bin/activate
    pip install -r tests/requirements.txt
    python setup.py test


.. |pypi| image:: https://badge.fury.io/py/djangocms-video.svg
    :target: http://badge.fury.io/py/djangocms-video
.. |build| image:: https://travis-ci.org/divio/djangocms-video.svg?branch=master
    :target: https://travis-ci.org/divio/djangocms-video
.. |coverage| image:: https://codecov.io/gh/divio/djangocms-video/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/divio/djangocms-video

.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg
    :target: https://pypi.org/project/djangocms-video/
.. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg
    :target: https://www.djangoproject.com/
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg
    :target: https://www.django-cms.org/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/django-cms/djangocms-video",
    "name": "djangocms-video",
    "maintainer": "Django CMS Association and contributors",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "info@django-cms.org",
    "keywords": "",
    "author": "Divio AG",
    "author_email": "info@divio.com",
    "download_url": "https://files.pythonhosted.org/packages/01/83/9c28b411d3727b049a6910a12be39f902b76421c64d69bee267558e73a93/djangocms-video-3.1.0.tar.gz",
    "platform": null,
    "description": "================\ndjango CMS Video\n================\n\n|pypi| |build| |coverage|\n\n**django CMS Video** is a set of plugins for `django CMS <http://django-cms.org>`_\nthat allow you to publish video content on your site (using an HTML5 player by default,\nbut you can override this in your own templates if required).\n\nIt uses files managed by `Django Filer <https://github.com/divio/django-filer>`_.\n\n.. note:: \n        \n        This project is endorsed by the `django CMS Association <https://www.django-cms.org/en/about-us/>`_.\n        That means that it is officially accepted by the dCA as being in line with our roadmap vision and development/plugin policy. \n        Join us on `Slack <https://www.django-cms.org/slack/>`_.\n\n.. image:: preview.gif\n\n\n*******************************************\nContribute to this project and win rewards\n*******************************************\n\nBecause this is a an open-source project, we welcome everyone to\n`get involved in the project <https://www.django-cms.org/en/contribute/>`_ and\n`receive a reward <https://www.django-cms.org/en/bounty-program/>`_ for their contribution. \nBecome part of a fantastic community and help us make django CMS the best CMS in the world.   \n\nWe'll be delighted to receive your\nfeedback in the form of issues and pull requests. Before submitting your\npull request, please review our `contribution guidelines\n<http://docs.django-cms.org/en/latest/contributing/index.html>`_.\n\nWe're grateful to all contributors who have helped create and maintain this package.\nContributors are listed at the `contributors <https://github.com/django-cms/djangocms-video/graphs/contributors>`_\nsection.\n\n\nDocumentation\n=============\n\nSee ``REQUIREMENTS`` in the `setup.py <https://github.com/divio/djangocms-video/blob/master/setup.py>`_\nfile for additional dependencies:\n\n|python| |django| |djangocms|\n\n* Django Filer 1.7 or higher\n\nMake sure `django-filer <http://django-filer.readthedocs.io/en/latest/installation.html>`_\nis installed and configured appropriately.\n\n\nInstallation\n------------\n\nFor a manual install:\n\n* run ``pip install djangocms-video``\n* add ``djangocms_video`` to your ``INSTALLED_APPS``\n* run ``python manage.py migrate djangocms_video``\n\n\nConfiguration\n-------------\n\nNote that the provided templates are very minimal by design. You are encouraged\nto adapt and override them to your project's requirements.\n\nThis addon provides a ``default`` template for all instances. You can provide\nadditional template choices by adding a ``DJANGOCMS_VIDEO_TEMPLATES``\nsetting::\n\n    from django.utils.translation import gettext_lazy as _\n\n    DJANGOCMS_VIDEO_TEMPLATES = [\n        ('feature', _('Featured Version')),\n    ]\n\nYou'll need to create the `feature` folder inside ``templates/djangocms_video/``\notherwise you will get a *template does not exist* error. You can do this by\ncopying the ``default`` folder inside that directory and renaming it to\n``feature``.\n\n``MP4``, ``WEBM`` and ``OGV`` files are allowed by default. We recommend\nadding all 3 source files for full browser compatibility. You can change\nthe default setting by overriding::\n\n    DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']\n\nThe plugin detects YouTube URLs using a regular expression and canonicalizes\nthem to `//www.youtube.com/embed/{}` where the placeholder is replaced by the\nvideo id.\n\nThe canonical URL can be reconfigured with a configuration setting::\n\n    DJANGOCMS_VIDEO_YOUTUBE_EMBED_URL = '//www.youtube-nocookie.com/embed/{}'\n\nRunning Tests\n-------------\n\nYou can run tests by executing::\n\n    virtualenv env\n    source env/bin/activate\n    pip install -r tests/requirements.txt\n    python setup.py test\n\n\n.. |pypi| image:: https://badge.fury.io/py/djangocms-video.svg\n    :target: http://badge.fury.io/py/djangocms-video\n.. |build| image:: https://travis-ci.org/divio/djangocms-video.svg?branch=master\n    :target: https://travis-ci.org/divio/djangocms-video\n.. |coverage| image:: https://codecov.io/gh/divio/djangocms-video/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/divio/djangocms-video\n\n.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg\n    :target: https://pypi.org/project/djangocms-video/\n.. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg\n    :target: https://www.djangoproject.com/\n.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg\n    :target: https://www.django-cms.org/\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Adds video plugin to django CMS.",
    "version": "3.1.0",
    "project_urls": {
        "Homepage": "https://github.com/django-cms/djangocms-video"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "636099b195ec04a28ac1f535305d8b641942e4f510ad8bf2773af92f64db7417",
                "md5": "5dedb4c8d0ddd4ba3a1760616171900e",
                "sha256": "439e8fea5a6978138365c021a84589e2197f78b1cf2df54f369d2f77b1e7ebdb"
            },
            "downloads": -1,
            "filename": "djangocms_video-3.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5dedb4c8d0ddd4ba3a1760616171900e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 166475,
            "upload_time": "2023-12-06T22:55:55",
            "upload_time_iso_8601": "2023-12-06T22:55:55.051259Z",
            "url": "https://files.pythonhosted.org/packages/63/60/99b195ec04a28ac1f535305d8b641942e4f510ad8bf2773af92f64db7417/djangocms_video-3.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01839c28b411d3727b049a6910a12be39f902b76421c64d69bee267558e73a93",
                "md5": "2fad3823d239f1ba2aaa6b43baf949f9",
                "sha256": "ecb0d857f5f64c32015b898f829ab16034ea70789e7896009693c086bbd328cd"
            },
            "downloads": -1,
            "filename": "djangocms-video-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2fad3823d239f1ba2aaa6b43baf949f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 39155,
            "upload_time": "2023-12-06T22:55:57",
            "upload_time_iso_8601": "2023-12-06T22:55:57.041951Z",
            "url": "https://files.pythonhosted.org/packages/01/83/9c28b411d3727b049a6910a12be39f902b76421c64d69bee267558e73a93/djangocms-video-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 22:55:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "django-cms",
    "github_project": "djangocms-video",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "djangocms-video"
}
        
Elapsed time: 0.45862s