Skip to main content
django-vimeo
==================

Django module for easy embedding Vimeo videos into app.

.. image:: https://travis-ci.org/suquant/django-vimeo.svg?branch=master
:target: https://travis-ci.org/suquant/django-vimeo
.. image:: https://coveralls.io/repos/suquant/django-vimeo/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/suquant/django-vimeo?branch=master


Quick start
************

#. Install ``django-vimeo``:

::

pip install django-vimeo


or from sources

::

pip install git+https://github.com/suquant/django-vimeo.git


#. Add ``django_vimeo`` to ``INSTALLED_APPS`` in your Django settings.

#. Usage of template tags:

::

{% load django_vimeo_tags %}

The video tag:
{% vimeo instance.video width=600 as video %}
<video width="600" loop="loop" autoplay="autoplay" poster="{{ video.optimal_picture.link }}">
<source src="{{ video.optimal_file.link_secure }}" type='{{ video.optimal_file.type }}'>
{% trans 'tag "video" not supported by your browser' %}
<a href="{{ video.optimal_download.link }}">{% trans 'download video' %}</a>.
</video>
{% endvimeo %}

Or embed shortcut:
{% vimeo instance.video width=600 %}

#. Usage of model fields

::

from django.db import models
from django_vimeo import fields


class ExampleModel(models.Model):
video = fields.VimeoField(null=True, blank=True)


Release 0.1 (Januar 20, 2016)
--------------------------

- Initial release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-vimeo-0.1.8.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file django-vimeo-0.1.8.tar.gz.

File metadata

  • Download URL: django-vimeo-0.1.8.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-vimeo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 38595841eea8933957b88fa6bd6acf4faf3e589276bf14e240f8dd08eceb2021
MD5 7430aa4a9b987029ca0c9078ed0d5306
BLAKE2b-256 22bb265de0feceede4c17170dc0a6627bcf66987220f6b8bc8b76223da145b48

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.8 This release

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page