Add bash code blocks

This commit is contained in:
Ryan P Kilby 2016-09-04 00:14:06 -04:00
parent 8f9f423941
commit 31c24c8f52
3 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Contents:
install
usage
rest_framework
ref/filterset
ref/filters
ref/fields

View File

@ -3,6 +3,8 @@ Installing django-filter
Install with pip:
.. code-block:: bash
pip install django-filter
And then add ``'django_filters'`` to your ``INSTALLED_APPS``.

View File

@ -18,6 +18,8 @@ Set up a virtualenv for the test suite
Run the following to create a new virtualenv to run the test suite in::
.. code-block:: bash
virtualenv django-filter-tests
cd django-filter-tests
. bin/activate
@ -27,10 +29,14 @@ Get a copy of django-filter
Get the django-filter source code using the following command::
.. code-block:: bash
git clone https://github.com/alex/django-filter.git
Switch to the django-filter directory::
.. code-block:: bash
cd django-filter
Install the test dependencies
@ -39,10 +45,14 @@ Install the test dependencies
Run the following to install the test dependencies within the
virutalenv::
.. code-block:: bash
pip install -r requirements/test.txt
Run the django-filter tests::
.. code-block:: bash
python runtests.py
@ -52,5 +62,7 @@ Testing all supported versions
You can also use the excellent tox testing tool to run the tests against all supported versions of
Python and Django. Install tox globally, and then simply run::
.. code-block:: bash
tox