DEV Community

Cover image for Looking to deploy your Django App?
Ordinary Coders
Ordinary Coders

Posted on • Originally published at ordinarycoders.com

Looking to deploy your Django App?

AWS Elastic Beanstalk Console makes deployment simple.

1) Create an AWS account.
2) Create a requirements.txt file in the project directory.

pip freeze > requirements.txt
Enter fullscreen mode Exit fullscreen mode

3) Create a .ebextensions folder in the project directory.

mkdir .ebextensions
Enter fullscreen mode Exit fullscreen mode

4) Create a django.config file in the .ebextensions folder.

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: mysite.wsgi:application
Enter fullscreen mode Exit fullscreen mode

5) Zip all the files in your Django project directory.
6) Upload the zipped folder to AWS EB console.
7) Wait for AWS EB to launch your project.
8) Click the custom EB URL to see your deployed project!

Deploying Django from AWS Elastic Beanstalk Console

Discussion (0)