Vimeo-related shortcuts for Django
pip install --user vimeo_utils
- OR you can download and unzip the .tar.gz package and then run
python setup.py install
inside the unzipped directory
- Add "vimeo_utils" to your
INSTALLED_APPS
setting like this:
INSTALLED_APPS = [
'vimeo_utils',
Generates embed code from Embed Responsively based on the vimeo ID
Usage: {% vimeo_embed_responsive vimeo_id %}
Note: vimeo_id
is a string, not an integer
Example:
{% load vimeo_embed_responsive %}
<div class="container">
<h1>Scott Schwartz</h1>
{% vimeo_embed_responsive "144912687" %}
</div>
Fetches the src URI for the thumbnail based on the vimeo ID
Usage: {% vimeo_thumbnail vimeo_id %}
Note: vimeo_id
is a string, not an integer
Example:
{% load vimeo_thumbnail %}
<div class="container">
<h1>Scott Schwartz</h1>
<h3>The man. The legend.</h3>
<img alt="Scott" src="{% vimeo_thumbnail "144912687" %}" />
</div>