Skip to content

life-in-messiah/django-vimeo-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-vimeo-utils

Vimeo-related shortcuts for Django

Build Status Versions Supported PyPI version

Installation

  • 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
  1. Add "vimeo_utils" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
      'vimeo_utils',

Template tags

vimeo_embed_responsive

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>

vimeo_thumbnail

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>

About

Vimeo-related shortcuts for Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages