Chapter 6. Deploy Django App
This chapter covers how to deploy your Django app in the production environment. We'll also explain how to manage several software tools and services through the deployment process, such as AWS Lightsail, GitHub, PostgreSQL, Nginx, GCP (Google Cloud Platform), and SendGrid.
The following lessons are covered in this chapter.
Lessons in this chapter
- Overview of Django App Deployment (1)
- Overview of Django App Deployment (2)
- Key Steps of Django App Deployment
- Hosting Service Initial Settings (1) – AWS Lightsail setup
- Hosting Service Initial Settings (2) – SSH Remote Connection
- Manage Local Computer and Remote Server Simultaneously
- Tips of Managing Local Development and Remote Production Environment
- Hosting Service Initial Settings (3) – Clone Project Directory with GitHub
- Production Database Setup
- Django App Production Configuration (1) – Settings.py for Development and Production
- Django App Production Configuration (2) – Production Settings
- Django App Production Configuration (3) – django-environ and .env file
- Static File Settings
- Django and Dependency Installation on Production Server
- Web Server and Application Server in Django
- Application Server Setup – Gunicorn
- Web Server Setup – Nginx
- Domain Setup
- SSL Setup – Certbot
- Email Setting – SendGrid
- Social Login for Production
- Manage Local Development and Remote Production Environment