Install¶
Note
If you want to install a development environment, please see Contributing.
Requirements¶
django-downloadview has been tested with Python [1] 2.7, 3.3 and 3.4. Other versions may work, but they are not part of the test suite at the moment.
Installing django-downloadview will automatically trigger the installation of the following requirements:
'Django>=1.5',
'requests',
'setuptools',
'six',
As a library¶
In most cases, you will use django-downloadview as a dependency of another
project. In such a case, you should add django-downloadview in your main
project’s requirements. Typically in setup.py
:
from setuptools import setup
setup(
install_requires=[
'django-downloadview',
#...
]
# ...
)
Then when you install your main project with your favorite package manager (like pip [2]), django-downloadview and its recursive dependencies will automatically be installed.
Standalone¶
You can install django-downloadview with your favorite Python package manager. As an example with pip [2]:
pip install django-downloadview
Check¶
Check django-downloadview has been installed:
python -c "import django_downloadview;print(django_downloadview.__version__)"
You should get installed django-downloadview‘s version.
Notes & references
[1] | https://www.python.org/ |
[2] | (1, 2) https://pip.pypa.io/ |