Creating django welcome page on EC2 instance

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


# 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
python 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 runserver ec2-xxxxxxxxxx.compute-1.amazonaws.c

Leave a Reply

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