Magic Embed is an easy and simple Django template tag and tool to embed video and get thumbnails from video providers.
You can see here the Magic Embed Demo
You can download it from PyPI
If you want to use Embedly please create a new account and generate the key
When you have the API key, add this in your settings.py:
EMBEDLY_KEY='YourAwesomeAPIKey'
To get the latest stable release from PyPI
pip install django-magicembed
To get the latest commit from GitHub
pip install -e git+git://github.com/kronoscode/django-magicembed.git#egg=magicembed
If you have a requeriments list add this to your requeriments
magicembed==(version)
pip install -r requirements.txt
add magicembed to INSTALLED_APPS
INSTALLED_APPS = ( ..., 'magicembed', )
Before your tags/filters are available in your templates, load them by using
{% load magicembed_tags %}
Now if you need to embed a video, add this template tag to video url field
{{ video|magicembed:"width x height" }}
Or to get a thumbnail url
{{ video|magicthumbnail }}
If you want run test please set in the test_settings.py your Embedly Api Key correctly
In order to run the tests, simply execute tox
. This will install two new environments (for Django 1.6 and Django 1.7) and run the tests against both environments.
If you want to contribute to this project, please perform the following steps
# Fork this repository # Clone your fork mkvirtualenv -p python2.7 django-magicembed make develop git co -b feature_branch master # Implement your feature and tests git add . && git commit git push -u origin feature_branch # Send us a pull request for your feature branch
Licensed under MIT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4