
It is good practice to run your application as system users with limited privileges which has limited access to resources on your server. But web applications are still vulnerable. > Python 3.6.6 Setting up Ubuntu user for our applicationĭjango itself is very secure framework, I agree. Sudo make & sudo make install Removing downloaded file sudo rm -rf Python-3.6.6.tar.xz Check Python version python3 -V Sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev Downloading & manually installing required Python version cd /opt & sudo wget Building and installing dependencies sudo apt install build-essential checkinstall Before that we need to install some required dependencies. We will download the tar.xz file from official site and than manually install it. ssh -i path-to-your-key.pem apt-get update & sudo apt-get upgrade -y Installing Python3.6.x on AWS EC2 (ubuntu 16.04) You need to ssh into your EC2 instance, so make sure you have port 22 open for your instance and then do a update/upgrade. requirements.txt is present in your app, having dependencies list to install.Database settings are configured to use PostgreSQL.Django application that you want to deploy.Port 22, 80 must be open for this instance.


If you’re in no mood to read, you can copy paste each step as described (replace values) and get your server up and running ? Prerequisites: So I thought I’d write a step-by-step guide that will ease the deployment process. Getting a server up and running for a new project every time might be time-consuming or difficult for new developers.
#Apache wsgi django aws postgresql how to#
By Sumeet Kumar How to create a Django server running uWSGI, NGINX and PostgreSQL on AWS EC2 with Python 3.6
