Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Manages integration of brightcove into django.

Project description

Manages the integration of brightcove videos in a django project. It extends the the Brightcove library developed by Jonathan Beluch:

It basically add a form field to easily integrate brightcove account video in the django admin or any form. And adds a template tag to fast integrate a brightcove video in a template.


It is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.

From PyPi

pip install django-brightcove

From Github


Before starting, you will need a Brightcove API token in order to connect to brightcove:

The first step is to add the app in your installed apps list in


The you will need to declare the loaders you want to add in your file


Finally you will need to add the django-brightcove urls to your Root URLCONF

urlpatterns = patterns('',

    (r'^django_brightcove', include('django_brightcove.urls')),

Add a Brightcove video to a model

Simply add the Brightcove field manager to it.

from django.db import models
from django_brightcove.fields import BrightcoveField

class MyModel(models.Model):
    brightcove = BrightcoveField()

Template tags

You can easily insert a video with a built in template tag.

The first step is to list your brightcove player id and key in your settings file.

    'default': {
        'PLAYERID': 'a_default_player_id',
        'PLAYERKEY': 'a_default_player_key',
    'single': {
        'PLAYERID': 'another_player_id',
        'PLAYERKEY': 'another_player_key',

Then within your template, simply call for the player tag and pass your video id and eventualy a specific brightcove player type. By default the tag with the key set as ‘default’ in settings.BRIGHTCOVE_PLAYER dictionary.

{% load brightcove %}

<div class="player">{% brightcove_player object.brightcove_id player='single' %}</div>

You can also pass height and width to the template tag, ie:

{% load brightcove %}

<div class="player">{% brightcove_player object.brightcove_id width=480 height=270 %}</div>

You will also need to add the Brightcove javascript library

<script type="text/javascript" src=""></script>


Please feel free to contribute. Any help and advices are much appreciated.

Project details

Release history Release notifications

This version
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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-brightcove-0.0.7.tar.gz (10.7 kB) Copy SHA256 hash SHA256 Source None Nov 24, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page