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.
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 details)
File details
Details for the file django-mediaelementjs-2.10.3.tar.gz.
File metadata
- Download URL: django-mediaelementjs-2.10.3.tar.gz
- Upload date:
- Size: 250.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35702f0a0fe0e94200205fd25e4a045ca2fa71c8c531fb7dca7d4a692f8d7dbb
|
|
| MD5 |
613b00e6b0d797f52ef3ae086f54fd15
|
|
| BLAKE2b-256 |
8a66efaa73b3afb4c6a2b82218bcaa751b81c71b069ca2432dcc21e57ac7ceea
|