Django Tutorial · Deploy Django

Deploy with EB

Learn all about Deploy with EB in this comprehensive tutorial.

5 min read advanced
  • In AWS, navigate to the Elastic Beanstalk application, as we did in the Choose Provider chapter, and click the "Create application" button:
  • Once you have clicked the "Create Application" button, you will be taken to this page, where you can give your Django project a name.
  • Then scroll down until you see the "Platform" section, and choose "Python", with the recommended version:
  • Next, scroll down to the next section, the "Application code" section, and choose "Upload your code".
  • Click the "Create application" button to start deploying.
  • The deployment will take a few minutes.
  • Finally the project is live, and you can view it by clicking the link below the **Myfirstdjango-env** header, or type the host address in your browser:

Elastic Beanstalk

In AWS, navigate to the Elastic Beanstalk application, as we did in the Choose Provider chapter, and click the "Create application" button:

Create EB Application

Once you have clicked the "Create Application" button, you will be taken to this page, where you can give your Django project a name. I will name it "my-first-django":

Tutorial image

Choose Platform

Then scroll down until you see the "Platform" section, and choose "Python", with the recommended version:

Tutorial image

Upload .zip File

Next, scroll down to the next section, the "Application code" section, and choose "Upload your code".

Click on the "Choose file" button, navigate to the .zip file you created in the previous chapter and upload it:

Tutorial image

The .zip file is uploaded, and we are ready to deploy!

Deploy

Click the "Create application" button to start deploying.

Waiting

The deployment will take a few minutes.

Tutorial image

Success!

Finally the project is live, and you can view it by clicking the link below the Myfirstdjango-env header, or type the host address in your browser:

Tutorial image

Module quiz

2 questions
1

Which of the following is true about Deploy with EB?

2

What is the most common pitfall when working with Deploy with EB?

Answer all questions to submit.