Usage / Deployment Instructions
Step 1: Open Putty for SSH
Step 2: Open Putty and Type <instance public IP> at “Host Name” and Type "ubuntu" as user name Password auto taken from PPK file
Step 3: Use following Linux command to change the host.
Step 3.1: Command: sudo vi /etc/hosts
Take the Private Ip address from your machine as per the below screenshot and add the second line of your command screen with that Private ip address


Step 4: Use the following command to start Django:
Command: sudo su
Command: cd /var/www
Command: django-admin startproject django_app
Command: cd django_app

Command: python3 manage.py migrate

Note: below command will add a user to your environment and you can set a password as you like for that user.
Command: python3 manage.py createsuperuser

Command: vi django_app/settings.py

Change the “ALLOWED_HOSTS” to the public ip of your instance as shown below:

Command: python3 manage.py runserver 0.0.0.0:8000

Step 5: Hit the browser with the IP as: http://<instance public IP>:8000
Enjoy the Django environment.
