django-downloadview/demo
Adam Chainz a4cc84d758 Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-06-27 22:42:16 +01:00
..
demoproject Make sure HTTPDownloadView proxies Content-Type header. Refs #116 2016-03-14 17:42:30 +01:00
README.rst Refs #98 - Workaround documentation. 2015-06-12 19:30:57 +02:00
setup.py Convert readthedocs links for their .org -> .io migration for hosted projects 2016-06-27 22:42:16 +01:00

############
Demo project
############

`Demo folder in project's repository`_ contains a Django project to illustrate
`django-downloadview` usage.


*****************************************
Documentation includes code from the demo
*****************************************

Almost every example in the documentation comes from the demo:

* discover examples in the documentation;
* browse related code and tests in demo project.

Examples in documentation are tested via demo project!


***********************
Browse demo code online
***********************

See `demo folder in project's repository`_.


***************
Deploy the demo
***************

System requirements:

* `Python`_ version 2.7, available as ``python`` command.
  
  .. note::

     You may use `Virtualenv`_ to make sure the active ``python`` is the right
     one.

* ``make`` and ``wget`` to use the provided :file:`Makefile`.

Execute:

.. code-block:: sh

   git clone git@github.com:benoitbryon/django-downloadview.git
   cd django-downloadview/
   make runserver

It installs and runs the demo server on localhost, port 8000. So have a look
at ``http://localhost:8000/``.

.. note::

   If you cannot execute the Makefile, read it and adapt the few commands it
   contains to your needs.

Browse and use :file:`demo/demoproject/` as a sandbox.


**********
References
**********

.. target-notes::

.. _`demo folder in project's repository`:
   https://github.com/benoitbryon/django-downloadview/tree/master/demo/demoproject/

.. _`Python`: http://python.org
.. _`Virtualenv`: http://virtualenv.org