Skip to main content

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.

Release files for django-mediaelementjs 2.10.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mediaelementjs 2.10.3
File Size Uploaded
django-mediaelementjs-2.10.3.tar.gz 250.0 kB Details

Release files / django-mediaelementjs-2.10.3.tar.gz

Download URL django-mediaelementjs-2.10.3.tar.gz
Size 250.0 kB
Tags Source
SHA-256 checksum
How to use checksums
35702f0a0fe0e94200205fd25e4a045ca2fa71c8c531fb7dca7d4a692f8d7dbb
BLAKE2b-256 checksum
How to use checksums
8a66efaa73b3afb4c6a2b82218bcaa751b81c71b069ca2432dcc21e57ac7ceea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.10.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page