Skip to content

Commit

Permalink
version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yetty committed Jun 1, 2013
1 parent 457f978 commit a496206
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Changes
*******

0.1
-----

- Initial release
1 change: 0 additions & 1 deletion README.md

This file was deleted.

30 changes: 23 additions & 7 deletions README → README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,59 @@ Django app for easy embeding YouTube and Vimeo videos.


Installation
------------
************

::

pip install django-embed-video

Add ``embed_video`` to ``INSTALLED_APPS`` in your Django settings.


Examples
---------
********

### Template examples
Template examples
-----------------

First you have to load the `embed_video_tags` template tags in your template:

::

{% load embed_video_tags %}

Simple embeding of video:

::

{% video item.video as video %}
{{ video|embed:'small' }}
{% endvideo %}

Default sizes are `tiny` (420x315), `small` (480x360), `medium` (640x480),
`large` (960x720) and `huge` (1280x960). You can set your own size:
Default sizes are ``tiny`` (420x315), ``small`` (480x360), ``medium`` (640x480),
``large`` (960x720) and ``huge`` (1280x960). You can set your own size:

::

{{ video|embed:'800x600' }}

Usage of variables:

::

{% video item.video as video %}
URL: {{ video.url }}
Thumbnail: {{ video.thumbnail }}
{% endvideo %}


### Model examples
Model examples
---------------

Using the EmbedVideoField you provide validation of correct URL.

::

from django.db import models
from embed_video.fields import EmbedVideoField

Expand All @@ -50,7 +66,7 @@ Using the EmbedVideoField you provide validation of correct URL.


TODO
-----
*****

- provide AdminEmbedVideoMixin
- Vimeo thumbnail
Expand Down
29 changes: 15 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
import os

from setuptools import setup, find_packages

README = open('README.rst').read()
CHANGES = open('CHANGES.rst').read()

setup(
name = 'django-embed-video',
packages = find_packages(),
version = '0.0.1',
author = 'Juda Kaleta',
author_email = '[email protected]',
url = '',
description = 'Django template tags for YouTube and Vimeo',
long_description = open('README').read(),
classifiers = [
name='django-embed-video',
packages=find_packages(),
version='0.1.0',
author='Juda Kaleta',
author_email='[email protected]',
url='https://github.com/yetty/django-embed-video',
description='Django template tags for YouTube and Vimeo',
long_description='\n\n'.join([README, CHANGES]),
classifiers=[
'Framework :: Django',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topis :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP',
],
keywords = ['youtube', 'vimeo', 'video'],
test_suite = 'embed_video.tests.tests',
keywords=['youtube', 'vimeo', 'video'],
test_suite='embed_video.tests.tests',
)

0 comments on commit a496206

Please sign in to comment.