From 1361888fcfb373bfc7dd3780cc5462e9d0251f5d Mon Sep 17 00:00:00 2001 From: Andrew Hayward Date: Fri, 30 Nov 2012 16:30:29 +0000 Subject: [PATCH] Expanding on the `virtualenv` bit of the guide --- README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7558e5c..a83661f 100644 --- a/README.md +++ b/README.md @@ -33,21 +33,34 @@ Installation 1. Fork [the core gameon repository][gameon-repo] 2. Clone your new repo: - `git clone --recursive git@github:{you}/gameon.git` -3. Create a new virtual environment (if that's your thing) + `> git clone --recursive git@github:{you}/gameon.git` +3. Set up a new [virtual environment][venv] (no, you really should): + 1. If you haven't already, install virtualenv[^1]: + `> pip install virtualenv` + 2. Make sure you're in the repo folder: + `> cd gameon` + 3. Create a virtual environment in the `venv` subfolder: + `> virtualenv venv` + 4. And activate it: + `> source venv/bin/activate` 4. Install required libraries: - `pip install -r requirements/compiled.txt` + `> pip install -r requirements/compiled.txt` 5. Create a database for gameon 6. Create local settings file, and update accordingly: - `cp gameon/settings/local.py{-dist,}` + `> cp gameon/settings/local.py{-dist,}` 7. Sync your new database: - `python manage.py syncdb` + `> python manage.py syncdb` + `> python manage.py migrate` 8. Start up your development server: - `python manage.py runserver` + `> python manage.py runserver` 9. Have a party +[^1]: If you already work with `virtualenvwrapper`, we'll assume you know the +appropriate steps for using that instead. + [gameon-repo]: https://github.com/mozilla/gameon +[venv]: http://pypi.python.org/pypi/virtualenv