semvec/pypi-packages huggingface dataset:
django-mediaelementjs 2.10.3
MediaElement.js packaged in an handy django app to speed deployment.
License: MIT
Keywords: django,mediaelement,staticfiles

Django MediaElement.js
======================


Requirements
------------

`Django <https://www.djangoproject.com/>`_ 1.3 or later


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

::

    $ pip install django-mediaelementjs


Setup
-----

Just add ``'django.contrib.staticfiles'`` and ``'mediaelementjs'`` to INSTALLED_APPS in
your settings.py::

    INSTALLED_APPS = (
        # ...

        'django.contrib.staticfiles',
        'mediaelementjs',

        # ...
    )

Refer to Django `static files <https://docs.djangoproject.com/en/dev/howto/static-files/>`_
documentation to configure and deploy static files.


Usage
-----

You can refer to MediaElement.js files in your template with::

    <script src="{{ STATIC_URL }}mediaelementjs/jquery.js"></script>
    <script src="{{ STATIC_URL }}mediaelementjs/mediaelement-and-player.min.js"></script>
    <link rel="stylesheet" href="{{ STATIC_URL }}mediaelementjs/mediaelementplayer.min.css" />


See `MediaElement.js <http://mediaelementjs.com/>`_ documentation for
customization and usage examples.