/
setup.py
53 lines (40 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from setuptools import setup
__doc__ = """
================
django-knockback
================
Django-Knockback is a utility app that just contains all the javascript dependencies that are required in order to use `knockback.js <https://github.com/kmalakoff/knockback>`_.
The app depends on `django-compressor <https://github.com/jezdez/django_compressor>`_ in order to serve knockback.js in both compressed and uncompressed forms.
The current versions of the javascript libraries are:
- jQuery 1.9.1
- Underscore 1.4.4
- Backbone 1.0.0
- Knockout 2.2.0
- Knockback 0.17.0
Installation:
^^^^^^^^^^^^^^^^^^^^^
Open the console and then type::
pip install django-knockback
Usage:
^^^^^^^^^^^^^^^^^^^^^
Include the 'knockback' app in the ``INSTALLED_APPS`` and then type::
./manage.py collectstatic.
To include knockback.js into your page just include the knockback/knockback.html template into the <head> tag or extend the knockback/base.html template.
The base.html has two blocks named head and body that contain the content of their respective tags.
"""
__maintainer__ = "Omer Katz"
__email__ = "omer.drow@gmail.com"
__license__ = "BSD"
__version__ = "0.1.3"
__status__ = "Stable"
setup(name='django-knockback',
version=__version__,
packages=['knockback'],
license=__license__,
author=__maintainer__,
author_email=__email__,
long_description=__doc__,
description='A django app that contains the necessary javascript files to use knockback.js',
keywords=['django', 'knockout.js', 'backbone.js', 'jquery', 'knockback.js'],
url='https://github.com/thedrow/django-knockback/',
install_requires=['Django>=1.3', 'django_compress'])