From 78eb3e568873921f6f73c57d93f31fa4389addca Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Fri, 22 Jun 2018 00:00:20 -0400 Subject: [PATCH] Updated environment_setup.md --- environment_setup.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/environment_setup.md b/environment_setup.md index fb7d459..7bf4238 100644 --- a/environment_setup.md +++ b/environment_setup.md @@ -1,29 +1,27 @@ Before starting the setup, make sure **Python 3.6** is installed on your system. -1. Use the pip tool to install `virtualenv` +1. Use the pip tool to install `virtualenv`. (See this [guide](http://docs.python-guide.org/en/latest/dev/virtualenvs/) for further details.) - [Guide](http://docs.python-guide.org/en/latest/dev/virtualenvs/) + `pip install --user pipenv` -2. Create a virtual environment in an empty directory: +2. Create a virtual environment. - `virtualenv -p ` + `python3 -m venv /path/to/new/virtual/environment` -3. cd into the directory you just created a virtual environment in, and clone our GitHub repo +3. `cd` into the directory you just created a virtual environment in, and clone the GitHub repo. -4. Activate the virtual environment from the command line +4. Activate the virtual environment from the command line. `source bin/activate` -5. cd into the repository root directory, install all dependencies using pip +5. `cd` into the repository root directory and install all dependencies using `pip`. `pip install -r requirements.txt` -6. Run Django migrations +6. Run Django migrations. `python manage.py migrate` -7. Start the server +7. Start the server. `python manage.py runserver` - -