Setting up a Django + MySQL Development Environment on AWS EC2 Linux 2



Setting up a Django + MySQL Development Environment on AWS EC2 Linux 2

Setting up a Django + MySQL Development Environment on AWS EC2 Linux 2

In this video, I show you how to set up a Django + MySQL development environment on an AWS EC2 Linux 2 instance. I’ll take you through the process of setting up the EC2 instance and enabling SSH connections to it. We’ll also create the RDS DB instance. And then set up security groups to make our connections more secure. And then I’ll show you what components need to be installed in order for your Django project to be able to connect to a MySQL database, along with what configurations to add in settings.py. And finally, I’ll show you how to run the test server so that it can be publicly accessible.

CHMOD 400 Equivalent Command on Windows for Changing File Permissions:
https://youtu.be/P1erVo5X3Bs

TABLE OF CONTENTS
00:00 Start
00:16 Creating a MySQL DB Instance in RDS
01:51 Launching an EC2 Linux 2 Instance
04:47 Creating a new key pair
06:07 Creating a security group for the DB Instance
10:06 Getting the database server’s endpoint address
10:39 SSH connection to the EC2 Instance
12:29 Beginning the installation process
13:46 Logging into MySQL and creating the database for the Django project
15:30 Creating a virtual Python environment
16:54 Installing Django
17:08 Installing the mysqlclient python package
17:27 Starting a Django project
17:44 Exploring the Django project’s files and folders
18:51 Editing settings.py in the Nano text editor
19:20 Configuring the Django project’s database settings
21:15 Adding allowed hosts
22:00 Running the Django server

Twitter: https://twitter.com/choobtorials

#AWS #Django #MySQL

Comments are closed.