Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django integration for mediamosa in TinyMCE.

Project Description

This django application will add a mediamosa plugin to your tinymce editor.


Install django-mediamosa-tinymce using pip.

Configure django-mediamosa first. In of your project:

MEDIAMOSA_USERNAME = 'mediamosa-user'
MEDIAMOSA_PASSWORD = 'mediamosa-password'

Add mediamosa_tinymce to INSTALLED_APPS in for your project:


Update your TinyMce configuration so it will load the new plugin and shows a mediamosa button:

    'plugins': "table,spellchecker,paste,searchreplace,mediamosa",
    'theme_advanced_buttons3_add': 'mediamosa'

Add the mediamosa_tinymce.urls to for your project:

urlpatterns = patterns('',
    url(r'^mediamosa/tinymce', include('mediamosa_tinymce.urls')),

Run the django collectstatic command to copy the mediamosa plugin for tinymce to your statics directory.

python ./ collectstatic


Enabling Mediamosa plugin

In order for the tinymce mediamosa to call the correct url’s, you need to set the ModelAdmin’s change_form template file:

class MyModelAdmin(admin.ModelAdmin):
    change_form_template = 'admin/mediamosa_tinymce_change_form.html'

This will load the correct url’s to query in the plugin’s javascript.

Playing an inserted mediafile

When you now output the model attribute containing the mediamosa entry you just inserted, you can initialize it by adding the following code to your template.

<script type="text/javascript">
    var mediamosaPlayerURI = "{% url mediafile-play %}";
<script type="text/javascript" src="{{ STATIC_URL }}js/mediamosa-player.js"></script>

This will initialize the URI the ajax call should connect to and launch the code that will replace the still with the actual video.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(12.9 kB) Copy SHA256 Hash SHA256
Source Mar 27, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting