Code resources for the YouTube live stream: How to deploy a Django App to AWS Lightsail.
Each step is listed below with a link to the code diff.
Create a new project and setup Docker/Docker Compose configuration.
Create a new Django project and app which we'll use later.
Configure the local Django database.
Create a placeholder page which we can use to test deployment.
Configure app for deployment.
- Configure Lightsail AWS account
Configure out Lightsail account (authentication, etc...)
- Push image to AWS Lightsail
Push our Docker container to AWS Lightsail.
- Create Lightsail container deployment
Create a new Lightsail container deployment in the AWS Lightsail Console.
Setup a new RDS instance on AWS Lightsail.
Get Django admin working and configure static files.
- Login to Django admin
Login to the Django admin on our deployed app on AWS Lightsail.
Build and deploy our publish app to test media files.