![free domain hosting amazon free domain hosting amazon](https://thoughtjelly.files.wordpress.com/2019/01/free-hosting-part-4-amazonwebervices.fw_.png)
For now, you can allow requests from all DNS or IPs but this is not safe.
![free domain hosting amazon free domain hosting amazon](https://www.shoutmeloud.com/wp-content/uploads/2016/07/WordPress-Free-hosting.png)
Update the ALLOWED_HOSTS in settings.py file. (venv) ubuntu:~$ django-admin startproject helloworld pip install virtualenvĬreate a virtual environment and activate it. We will be working in a virtual environment hence we need to install the same. Run below commands sudo apt-get update & sudo apt-get upgrade We need to install pip and other dev tools.
![free domain hosting amazon free domain hosting amazon](https://dt2sdf0db8zob.cloudfront.net/wp-content/uploads/2019/08/aws2.png)
Python3 is already installed on this instance. If the problem persists, follow connection guidelines. If you are not able to connect the instance using SSH, go to security groups and in the inbound tab, create a rule for SSH with port 22 enabled. Ssh -i ~/.ssh/aws_key.pem .com is your instance's public DNS. You can SSH into your EC2 instance from your terminal using the below command. Once your instance is up and running, download the private key file and place the same in ~/.ssh/ directory of your personal system. Instructions to create an account and starting the EC2 instance are pretty clear.
FREE DOMAIN HOSTING AMAZON FOR FREE
EC2 Free Tier account creation and SSH - Hello World Django App - Gunicorn - NginxĪmazon offers an EC2 instance with 750 hours of CPU usage for free for 12 months. We will be hosting the Django App on Free Tier EC2 Instance (t2.micro) which gives us the 750 hours of CPU usage, which should be more than enough for a small scale website. Since I have gone through the process, I am sharing the step by step approach to host Django application on EC2 instance. Hosting on PythonAnyWhere is a cakewalk as compared to hosting on EC2 instance. Recently I hosted a Django project on EC2 instance of AWS.