version 0.1

This commit is contained in:
Juda Kaleta 2013-06-01 15:21:01 +02:00
parent 457f978f30
commit a49620666a
4 changed files with 45 additions and 22 deletions

7
CHANGES.rst Normal file
View file

@ -0,0 +1,7 @@
Changes
*******
0.1
-----
- Initial release

View file

@ -1 +0,0 @@
README

View file

@ -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
@ -50,7 +66,7 @@ Using the EmbedVideoField you provide validation of correct URL.
TODO
-----
*****
- provide AdminEmbedVideoMixin
- Vimeo thumbnail

View file

@ -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 = 'juda.kaleta@gmail.com',
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='juda.kaleta@gmail.com',
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',
)