From ddc8c30317708ed7e23d629b8531a27a80a97cb4 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 3 Sep 2012 12:11:57 +0100 Subject: [PATCH] Cleaner documentation around installation of optional packages --- docs/index.md | 8 ++++++-- optionals.txt | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 optionals.txt diff --git a/docs/index.md b/docs/index.md index 31bb9deb9..25cab3984 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,20 +19,24 @@ REST framework requires the following: The following packages are optional: * [Markdown][markdown] (2.1.0+) - Markdown support for the self describing API. -* [PyYAML][yaml] (3.10+) - YAML content type support. +* [PyYAML][yaml] (3.10+) - YAML content-type support. ## Installation **WARNING: These instructions will only become valid once this becomes the master version** -Install using `pip`... +Install using `pip`, including any optional packages you want... pip install djangorestframework + pip install markdown # Recommended if using the browseable API. + pip install pyyaml # Required for yaml content-type support. ...or clone the project from github. git clone git@github.com:tomchristie/django-rest-framework.git + cd django-rest-framework pip install -r requirements.txt + pip install -r optionals.txt Add `djangorestframework` to your `INSTALLED_APPS`. diff --git a/optionals.txt b/optionals.txt new file mode 100644 index 000000000..cf0d8da4c --- /dev/null +++ b/optionals.txt @@ -0,0 +1,2 @@ +markdown>=2.1.0 +PyYAML>=3.10