Skip to content

Commit 30a18c7

Browse files
committed
Merge pull request #2 from oscarmcm/master
README.md
2 parents cc19770 + f016364 commit 30a18c7

2 files changed

Lines changed: 62 additions & 21 deletions

File tree

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Django Magic Embed
2+
==================
3+
4+
What is it?
5+
------------
6+
7+
Magic Embed is an easy and simple Django template tag and tool to embed
8+
video
9+
and get thumbnails from video providers.
10+
11+
Screenshots
12+
--------------
13+
14+
Downloading
15+
---------------
16+
17+
You can download it from PyPI here
18+
[PyPI-Magic Embed](https://pypi.python.org/pypi/magicembed/0.2)
19+
20+
How to install it?
21+
-------------------
22+
23+
If you have a requeriments list add this to your requeriments
24+
25+
1. <code>magicembed==(version)</code>
26+
27+
2. <code>pip install -r requirements.txt</code>
28+
29+
Or if you use setup.py
30+
31+
1. add magicembed to **INSTALLED_APPS**
32+
33+
2. run <code>python setup.py install</code>
34+
35+
How to use
36+
---------------
37+
38+
First add this in the template to load the template tags
39+
40+
<code>{% load magicembed_tags %}</code>
41+
42+
Now if you need to embed a video, add this template tag to video url
43+
field
44+
45+
<code>{{ video|magicembed:"width x height" }}</code>
46+
47+
Or to get a thumbnail url
48+
49+
<code>{{ video|magicthumbnail }}</code>
50+
51+
How to contrib
52+
----------------
53+
54+
1. Fork it ( http://github.com/fitoria/django-magicembed/fork )
55+
2. Create your feature branch (`git checkout -b my-new-feature`)
56+
3. Commit your changes (`git commit -am 'Add some feature'`)
57+
4. Push to the branch (`git push origin my-new-feature`)
58+
5. Create new Pull Request
59+
60+
Licence
61+
--------------
62+
Licensed under [MIT](http://opensource.org/licenses/mit-license.php)

README.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)