In the previous part of article we completed the environment setup to host the Django app on EC2 instance of AWS.
How to setup Django app on EC2 instance (AWS) – Part 1.
Hosting Django Apps on PythonAnyWhere server for free. Step by step guide.
In this article we will start from where we left in last part.
Activate the virtual environment.
python manage.py makemigrations
If you get a message –
No changes detected then make sure migration files from development environment are not present. If still same message is received, mention the name of app with makemigration command.
Continue reading “How to setup Django app on EC2 instance (AWS) – Part 2”
Recently I hosted Django project on EC2 instance of AWS. I find the process very difficult due to multiple reasons which we will see in article.
Hosting on PythonAnyWhere is cake walk as compare to hosting on EC2 instance. And pricing is also almost same.
Since I have gone through the process, I am sharing the step by step approach to host Django application on EC2 instance.
Django - 1.9
Python - 3.x
Ec2 OS - Fedora
Steps to host Django app on EC2:
Create the account and get the .pem file.
Place the file in on your system and change the permission on that file to 644.
chmod 644 aws_key.pem
Login to system from terminal.
ssh -i aws_key.pem firstname.lastname@example.org
Now you are into your home directory. Running
pwd will give you
Continue reading “How to setup Django app on EC2 instance (AWS)”