Permalink
Browse files

Expanding on the `virtualenv` bit of the guide

  • Loading branch information...
andrewhayward committed Nov 30, 2012
1 parent 1c4fc5d commit 1361888fcfb373bfc7dd3780cc5462e9d0251f5d
Showing with 19 additions and 6 deletions.
  1. +19 −6 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

0 comments on commit 1361888

Please sign in to comment.