[Django]-How do I deploy Django on AWS?

21๐Ÿ‘

โœ…

looking for a good place to read about it

Here you go

๐Ÿ‘คlprsd

16๐Ÿ‘

I am a developer at BitNami, you may want to take a look at our free Django AMI. It is compatible with the AWS free tier.

๐Ÿ‘คDaniel Lopez

2๐Ÿ‘

2 new tutorials are given
realpython doc

and
Ashok Fernandez blog

๐Ÿ‘คNavajyoth M S

0๐Ÿ‘

The simplest approach is to simply spin up an EC2 instance, install nginx (mysql? and any other dependencies you might have) then follow the steps on the django site: https://code.djangoproject.com/wiki/DjangoAndNginx to deploying it. This basically goes through setting up a script to run โ€œpython [your app directory]/manage.py runfcgi host=127.0.0.1 port=8080โ€ and setting up nginx to proxy requests to that port.

Another approach is to simply use a 3rd party tool like http://nudow.com to automate the deployment. For now the initial deployment I believe has to be done manually, however subsequent deployments can be done with one click. (and has other benefits like versioning)

๐Ÿ‘คVlad

0๐Ÿ‘

I usually use Nginx on an EC2 instance

๐Ÿ‘คRyan Allen

-1๐Ÿ‘

If you wish to deploy your Django app ASAP, without scratching your head :

You can use this script that I wrote:
Safely deploy your Django app in less 1 minute!

Instructions

Installing the DeployDjango script

$ wget https://raw.githubusercontent.com/yask123/DeployDjango/master/deploydjango.sh && chmod +x deploydjango.sh

From your Django Appโ€™s root directory (Where manage.py file exists).

$ sudo ./deploydjango.sh project_name

Done!

Visit http://ip-address-of-your-instance to see your web app live!

๐Ÿ‘คyask

Leave a comment