Deploying the Django website

For the rest of the book, we will use the HTTP Nginx server and PostgreSQL database. The chapter's explanation will be made on a GNU / Linux Debian 7.3.0 32-bit system. We will start with a new Debian operating system without any installations.

Installing PIP and Python 3

For the following commands, you must log on with a user account that has the same privileges as a superuser account. For this purpose, run the following command:

su

After this command, you must type the root password.

First, we update the Debian repositories:

apt-get update

Then, we install Python 3 and PIP as done in Chapter 2, Creating a Django Project:

apt-get install python3
apt-get install python3-pip
alias pip=pip-3.2

Installing PostgreSQL

We will ...

Get Django: Web Development with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.