unsplash_blog.mp4
The first thing to do is to clone the repository:
$ git clone https://github.com/gocardless/sample-django-app.git
$ cd sample-django-app
Create a virtual environment to install dependencies in and activate it:
$ python -m venv venv
$ source venv/bin/activate
Then install the dependencies:
(venv)$ pip install -r requirements.txt
Note the (venv)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by virtualenv2
.
Once pip
has finished downloading the dependencies:
(env)$ cd project
(env)$ python manage.py runserver
And navigate to http://localhost:8000
.