You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
)
How to use
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 }}
Run magicembed test
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.
How to contrib
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