File: INSTALL

package info (click to toggle)
django-downloadview 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 304 kB
  • sloc: python: 1,140; makefile: 4
file content (88 lines) | stat: -rw-r--r-- 1,776 bytes parent folder | download | duplicates (2)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#######
Install
#######

.. note::

   If you want to install a development environment, please see
   :doc:`/contributing`.


************
Requirements
************

`django-downloadview` has been tested with `Python`_ 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:

.. literalinclude:: /../setup.py
   :language: python
   :start-after: BEGIN requirements
   :end-before: END requirements


************
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.


.. rubric:: Notes & references

.. seealso::

   * :doc:`/settings`
   * :doc:`/about/changelog`
   * :doc:`/about/license`

.. target-notes::

.. _`Python`: https://www.python.org/
.. _`pip`: https://pip.pypa.io/