From 353aaa2abc5a7f5948993219935b00419c6b48eb Mon Sep 17 00:00:00 2001 From: Antti Hirvonen Date: Sun, 20 May 2012 13:01:34 +0300 Subject: [PATCH] Updated doc/installation.md command formatting --- doc/installation.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/installation.md b/doc/installation.md index 29fa355..3515115 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -4,12 +4,14 @@ Installation instructions These installation instructions cover the installation on *nix platform that already has Python 2.5 > pre-installed. -1. Install pip, virtualenv and virtualenvwrapper. (sudo easy_install pip virtualenv virtualenvwrapper) +1. Install pip, virtualenv and virtualenvwrapper. (``sudo easy_install pip virtualenv virtualenvwrapper``) 2. Pull code from github. 3. Move to project root directory. -4. Create new virtual Python environment. (mkvirtualenv --no-site-packages aaltoanalytics) -5. Install requirements using pip. (pip install -r config/requirements && pip install -r config/development_requirements.txt) -6. Copy template settings from "config/template_local.py" to "aaltoanalytics/settings/local.py" and modify as you wish. -7. Create database. (python manage.py syncdb && python manage.py migrate) -7. Run server. (python manage.py runserver) -8. Navigate to http://127.0.0.1:8000/mobile/ and app should be running. +4. Create new virtual Python environment. (``mkvirtualenv --no-site-packages aaltoanalytics``) +5. Install requirements using pip. (``pip install -r config/requirements && pip install -r config/development_requirements.txt``) +6. Copy template settings from ``config/template_local.py`` to ``aaltoanalytics/settings/local.py`` and modify as you wish. +7. Create database. (``python manage.py syncdb && python manage.py migrate``) +8. Run the development server. (``python manage.py runserver``) +9. Navigate to ``http://127.0.0.1:8000/mobile/`` and app should be running. + +If you eg. accidentally close the terminal, just run ``workon aaltoanalytics`` to activate the virtual environment and you'll be able to run the ``python manage.py`` commands again. \ No newline at end of file