2013-10-21 12:35:06 +00:00
|
|
|
#######
|
|
|
|
|
Install
|
|
|
|
|
#######
|
2012-12-04 10:47:37 +00:00
|
|
|
|
2013-10-04 16:11:16 +00:00
|
|
|
.. note::
|
|
|
|
|
|
2014-02-10 00:27:14 +00:00
|
|
|
If you want to install a development environment, please see
|
|
|
|
|
:doc:`/contributing`.
|
2013-10-04 16:11:16 +00:00
|
|
|
|
|
|
|
|
|
2015-06-12 17:30:57 +00:00
|
|
|
************
|
|
|
|
|
Requirements
|
|
|
|
|
************
|
2012-12-04 10:47:37 +00:00
|
|
|
|
2022-08-04 13:22:28 +00:00
|
|
|
`django-downloadview` has been tested with `Python`_ 3.7, 3.8, 3.9 and 3.10.
|
|
|
|
|
Other versions may work, but they are not part of the test suite at the moment.
|
2012-12-04 10:47:37 +00:00
|
|
|
|
2013-11-24 10:09:50 +00:00
|
|
|
Installing `django-downloadview` will automatically trigger the installation of
|
|
|
|
|
the following requirements:
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: /../setup.py
|
|
|
|
|
:language: python
|
2015-06-12 17:30:57 +00:00
|
|
|
:start-after: BEGIN requirements
|
|
|
|
|
:end-before: END requirements
|
2013-11-24 10:09:50 +00:00
|
|
|
|
2013-04-11 13:02:45 +00:00
|
|
|
|
2015-06-12 17:30:57 +00:00
|
|
|
************
|
|
|
|
|
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 :file:`setup.py`:
|
|
|
|
|
|
|
|
|
|
.. code:: python
|
|
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
install_requires=[
|
|
|
|
|
'django-downloadview',
|
|
|
|
|
#...
|
|
|
|
|
]
|
|
|
|
|
# ...
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
Then when you install your main project with your favorite package manager
|
|
|
|
|
(like `pip`_), `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`_:
|
|
|
|
|
|
|
|
|
|
.. code:: sh
|
|
|
|
|
|
|
|
|
|
pip install django-downloadview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*****
|
|
|
|
|
Check
|
|
|
|
|
*****
|
|
|
|
|
|
|
|
|
|
Check `django-downloadview` has been installed:
|
|
|
|
|
|
|
|
|
|
.. code:: sh
|
|
|
|
|
|
|
|
|
|
python -c "import django_downloadview;print(django_downloadview.__version__)"
|
|
|
|
|
|
|
|
|
|
You should get installed `django-downloadview`'s version.
|
2013-10-04 16:11:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.. rubric:: Notes & references
|
|
|
|
|
|
|
|
|
|
.. seealso::
|
|
|
|
|
|
|
|
|
|
* :doc:`/settings`
|
|
|
|
|
* :doc:`/about/changelog`
|
2013-10-21 12:35:06 +00:00
|
|
|
* :doc:`/about/license`
|
2013-11-24 10:09:50 +00:00
|
|
|
|
|
|
|
|
.. target-notes::
|
|
|
|
|
|
2015-06-24 12:10:33 +00:00
|
|
|
.. _`Python`: https://www.python.org/
|
2015-06-12 17:30:57 +00:00
|
|
|
.. _`pip`: https://pip.pypa.io/
|