Skip to main content

MediaElement.js packaged in an handy django app to speed deployment.

Project description

Requirements

Django 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 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 documentation for customization and usage examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-mediaelementjs-2.10.3.tar.gz (250.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page