diff options
| author | Tom Christie | 2012-09-03 13:10:39 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-03 13:10:39 +0100 | 
| commit | ebbaff0853d49cd436b416beeb28220922bfc977 (patch) | |
| tree | a1cfd56dd775f2fc75d84dd969e7fcffc440b0d9 /docs | |
| parent | 247a422a64378c968f0972b1797b919ae03296bb (diff) | |
| download | django-rest-framework-ebbaff0853d49cd436b416beeb28220922bfc977.tar.bz2 | |
Update virtualenv notes
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 6a97f779..3cfcf871 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -4,20 +4,24 @@  This tutorial will walk you through the building blocks that make up REST framework.   It'll take a little while to get through, but it'll give you a comprehensive understanding of how everything fits together. -## Getting started +## Setting up a new environment  Before we do anything else we'll create a new virtual environment, using [virtualenv].  This will make sure our package configuration is keep nicely isolated from any other projects we're working on. -    mkdir -p ~/.env -    virtualenv --no-site-packages ~/.env/djangorestframework -    source ~/.env/djangorestframework/env/bin/activate +    mkdir ~/env +    virtualenv --no-site-packages ~/env/djangorestframework +    source ~/env/djangorestframework/bin/activate -Now that we're inside a virtualenv environment, we can install our packages requirements. +Now that we're inside a virtualenv environment, we can install our package requirements.      pip install django      pip install djangorestframework -Now we're ready to get coding. +***Note:** To exit the virtualenv environment at any time, just type `deactivate`.  For more information see the [virtualenv documentation][virtualenv].* + +## Getting started + +Okay, we're ready to get coding.  To get started, let's create a new project to work with.      django-admin.py startproject tutorial  | 
