DEV Community

loading...
Cover image for Looking to deploy your Django App?

Looking to deploy your Django App?

ordinarycoders profile image Ordinary Coders Originally published at ordinarycoders.com ・1 min read

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)

pic
Editor guide