DEV Community

Cover image for The no-stress Django continuous deployment on Amazon Web Services - no terminal
Robert Seghedi
Robert Seghedi

Posted on

The no-stress Django continuous deployment on Amazon Web Services - no terminal

I had a lot of problems when it came to deploying Django apps on Amazon Web Services, but I finally solved the problem.

And the best part in this is that

There is no code or terminal needed.

1 - First of all, go to your AWS Console, press Option + S (Mac) and type CodeStar

Screenshot 2021-06-26 at 13.19.56

2 - Then, press the Create project button

Screenshot 2021-06-26 at 13.21.40

3 - Select your options, these are the ones that worked well for me

Screenshot 2021-06-26 at 13.23.58

4 - Select (click) the platform that showed up and press Next

Screenshot 2021-06-26 at 13.24.14

5 - Enter your project name & id, and select your repo (I'm using Github - btw it supports continuous deployment)

Screenshot 2021-06-26 at 13.24.51

6 - If you chose Github, you will have to enter these details. AWS will automatically create a repo for you.

Screenshot 2021-06-26 at 13.26.26

7 - Quickly configure your EC2 Instance

Screenshot 2021-06-26 at 13.29.10

8 - Review your project information and click on Create project

Screenshot 2021-06-26 at 13.30.13

At this point, you will have to wait 3-4 minutes for AWS to make everything for you.

When you push something to your repo on Github, the CodePipeline will automatically update your website.

The default Django version that AWS installs is 3.1.5, but you can modify the common.txt requirements-file from /requirements to 3.1.7, if you want.

Hope it helps you!

Good luck deploying Django (perfect) apps ❤️

Robert

Top comments (0)