Creating django welcome page on EC2 instance

Create vanilla ubuntu via AWS – open port 8000 via security group

follow https://www.digitalocean.com/community/tutorials/how-to-install-django-and-set-up-a-development-environment-on-ubuntu-16-04

# Edit the line below with your server IP address
ALLOWED_HOSTS = ['your-server-ip']

your-server-ip - fully qualified EC2 instance not just ip address
also 
python manage.py runserver your-server-ip:8000 - fully qualified
http://your-server-ip:8000/ - fully qualified

to run 
cd django-apps
. env/bin/activate
cd testsite
python manage.py runserver ec2-xxxxxxxxxx.compute-1.amazonaws.c
om:8000

Leave a Reply

Your email address will not be published. Required fields are marked *