Updated environment_setup.md
This commit is contained in:
@@ -1,29 +1,27 @@
|
|||||||
Before starting the setup, make sure **Python 3.6** is installed on your system.
|
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 <path to python3.6 executable> <path to empty directory>`
|
`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`
|
`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`
|
`pip install -r requirements.txt`
|
||||||
|
|
||||||
6. Run Django migrations
|
6. Run Django migrations.
|
||||||
|
|
||||||
`python manage.py migrate`
|
`python manage.py migrate`
|
||||||
|
|
||||||
7. Start the server
|
7. Start the server.
|
||||||
|
|
||||||
`python manage.py runserver`
|
`python manage.py runserver`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user