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: https://pypi.python.org/pypi/brightcove/0.2
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.
Install
It is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.
From PyPi
pip install django-brightcove
From Github
https://github.com/RevSquare/django-brightcove#egg=django-brightcove
Setup
Before starting, you will need a Brightcove API token in order to connect to brightcove: http://docs.brightcove.com/en/video-cloud/media/guides/managing-media-api-tokens.html
The first step is to add the app in your installed apps list in settings.py
INSTALLED_APPS = (
...
'django_brightcove'
...
)
The you will need to declare the loaders you want to add in your settings.py file
BRIGHTCOVE_TOKEN = 'YOUR_TOKEN..'
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()
Contribution
Please feel free to contribute. Any help and advices are much appreciated.
LINKS
- Development:
- Package:
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
File details
Details for the file django-brightcove-0.0.7.tar.gz
.
File metadata
- Download URL: django-brightcove-0.0.7.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f7e5a1ba76ee9c102d6374c57cd93c1583d055a6cd806b1d211ec788fa94496 |
|
MD5 | a175ab09181724734475fd4707a053d4 |
|
BLAKE2b-256 | 44817844b0c44d5df5c0c8d252d284d613fdd56f433311d839426c4cd67c594c |