@@ -39,6 +39,17 @@ When you have the API key, add this in your settings.py:
3939How to install it?
4040-------------------
4141
42+ To get the latest stable release from PyPI
43+
44+ .. code-block:: bash
45+ pip install django-magicembed
46+
47+ To get the latest commit from GitHub
48+
49+ .. code-block:: bash
50+
51+ pip install -e git+git://github.com/kronoscode/django-magicembed.git#egg=magicembed
52+
4253If you have a requeriments list add this to your requeriments
4354
44551 . <code >magicembed==(version)</code >
@@ -47,16 +58,21 @@ If you have a requeriments list add this to your requeriments
4758
48593 . <code >add magicembed to ** INSTALLED_APPS** </code >
4960
50- Or if you use setup.py
61+ .. code-block:: python
62+ INSTALLED_APPS = (
63+ ...,
64+ 'magicembed',
65+ )
5166
52- 1 . run <code >python setup.py install</code >
5367
5468How to use
5569---------------
5670
57- First add this in the template to load the template tags
71+ Before your tags/filters are available in your templates, load them by using
72+
73+ .. code-block:: html
5874
59- < code > {% load magicembed_tags %}</ code >
75+ {% load magicembed_tags %}
6076
6177Now if you need to embed a video, add this template tag to video url
6278field
@@ -67,14 +83,33 @@ Or to get a thumbnail url
6783
6884<code >{{ video|magicthumbnail }}</code >
6985
86+ Run magicembed test
87+ --------------------
88+
89+ If you want run test please set in the test_settings.py your
90+ Embedly Api Key correctly
91+
92+ In order to run the tests, simply execute `` tox `` . This will install two new
93+ environments (for Django 1.6 and Django 1.7) and run the tests against both
94+ environments.
95+
7096How to contrib
7197----------------
7298
73- 1 . Fork it ( http://github.com/kronoscode/django-magicembed/fork )
74- 2 . Create your feature branch (` git checkout -b my-new-feature ` )
75- 3 . Commit your changes (` git commit -am 'Add some feature' ` )
76- 4 . Push to the branch (` git push origin my-new-feature ` )
77- 5 . Create new Pull Request
99+ If you want to contribute to this project, please perform the following steps
100+
101+ .. code-block:: bash
102+
103+ # Fork this repository
104+ # Clone your fork
105+ mkvirtualenv -p python2.7 django-magicembed
106+ make develop
107+
108+ git co -b feature_branch master
109+ # Implement your feature and tests
110+ git add . && git commit
111+ git push -u origin feature_branch
112+ # Send us a pull request for your feature branch
78113
79114Licence
80115--------------
0 commit comments