| 1 |
############ |
| 2 |
Demo project |
| 3 |
############ |
| 4 |
|
| 5 |
`Demo folder in project's repository`_ contains a Django project to illustrate |
| 6 |
``django-downloadview`` usage. |
| 7 |
|
| 8 |
|
| 9 |
***************************************** |
| 10 |
Documentation includes code from the demo |
| 11 |
***************************************** |
| 12 |
|
| 13 |
Almost every example in the documentation comes from the demo: |
| 14 |
|
| 15 |
* discover examples in the documentation; |
| 16 |
* browse related code and tests in demo project. |
| 17 |
|
| 18 |
Examples in documentation are tested via demo project! |
| 19 |
|
| 20 |
|
| 21 |
*********************** |
| 22 |
Browse demo code online |
| 23 |
*********************** |
| 24 |
|
| 25 |
See `demo folder in project's repository`_. |
| 26 |
|
| 27 |
|
| 28 |
*************** |
| 29 |
Deploy the demo |
| 30 |
*************** |
| 31 |
|
| 32 |
System requirements: |
| 33 |
|
| 34 |
* `Python`_ version 3.7+, available as ``python`` command. |
| 35 |
|
| 36 |
.. note:: |
| 37 |
|
| 38 |
You may use `Virtualenv`_ to make sure the active ``python`` is the right |
| 39 |
one. |
| 40 |
|
| 41 |
* ``make`` and ``wget`` to use the provided :file:`Makefile`. |
| 42 |
|
| 43 |
Execute: |
| 44 |
|
| 45 |
.. code-block:: sh |
| 46 |
|
| 47 |
git clone [email protected]:jazzband/django-downloadview.git |
| 48 |
cd django-downloadview/ |
| 49 |
make runserver |
| 50 |
|
| 51 |
It installs and runs the demo server on localhost, port 8000. So have a look |
| 52 |
at ``http://localhost:8000/``. |
| 53 |
|
| 54 |
.. note:: |
| 55 |
|
| 56 |
If you cannot execute the Makefile, read it and adapt the few commands it |
| 57 |
contains to your needs. |
| 58 |
|
| 59 |
Browse and use :file:`demo/demoproject/` as a sandbox. |
| 60 |
|
| 61 |
|
| 62 |
********** |
| 63 |
References |
| 64 |
********** |
| 65 |
|
| 66 |
.. target-notes:: |
| 67 |
|
| 68 |
.. _`demo folder in project's repository`: |
| 69 |
https://github.com/jazzband/django-downloadview/tree/master/demo/demoproject/ |
| 70 |
|
| 71 |
.. _`Python`: http://python.org |
| 72 |
.. _`Virtualenv`: http://virtualenv.org |