Django Setup and Deployment
Prerequisites
This guide assumes the following:
- Python 3.6
- Django 2.0
- git
- Production/deployment to a new Ubuntu 17.10 server.
- Development machine: Linux, Windows or Mac.
Preparing Your Django Project:
- Project structure + using pipenv
- Setting up postgres on develoment machines
- Configuring Django to use postgres
- Making a modular
settings.pyfor your project - Preparing your project for deployment
Interacting with the server
- Interacting with the server with SSH
- Creating a
sysopuser - Using
fabricfor Automating Remote Tasks - Update Server and Install Services
- Create a postgres sysop user
Setting up a Django Project
- Clone project and create a virtualenv
- Create a production local_settings file
- Create a database and tables
- Setup
uwsgiandnginx - Automating upgrades