Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Deploy a Django App With Gunicorn and Nginx (Overview)

Taking a Django app from development to production is a demanding but rewarding process. In this video course, you’ll go through that process step by step. You’ll start at square one with a no-frills Django application then add in Gunicorn, Nginx, and domain registration. After working through this video course, you’ll be better equipped to take your Django app into production and serve it to the world.

In this video course, you’ll learn:

  • How you can take your Django app from development to production
  • How you can host your app on a real-world public domain
  • How to introduce Gunicorn and Nginx into the request and response chain

To make the most out of this video course, you should have an introductory-level understanding of Python, Django, and the high-level mechanics of HTTP requests.

Download

Sample Code (.zip)

7.1 KB
Download

Course Slides (.pdf)

6.0 MB

00:00 Deploy a Django App With Gunicorn and Nginx.

00:06 Taking a Django app from development to production is a demanding but rewarding process. This course will take you through that process step by step, providing an in-depth guide that starts at square one with a no-frills Django application and adds in Gunicorn, Nginx, and domain registration.

00:26 At the end, you’ll be better equipped to take your Django app into production and serve it to the world. In this course, you’ll learn how you can take your Django app from development to production, how you can host your app on a real-world public domain, and how to introduce Gunicorn and Nginx into the request and response chain.

00:47 To make the most out of this course, you should have an introductory-level understanding of Python and Django. If you need help in either area, Real Python has got you covered with this learning path covering an introduction to Python and these tutorials covering Django.

01:06 This course was created using Django 4.1.1, although the techniques covered should be very similar for any recent version of the web framework. The course involves setting up a cloud virtual machine on a server run by a third party, so it should be considered as touching on DevOps.

01:25 Due to the fast-moving nature of cloud hosting, you may need to spend time with your chosen cloud host’s documentation to get the services you need up and running, and we would consider this course to be of an intermediate to advanced level because of this. However, it’s well worth persevering with, as knowledge of how to host a Django project online is a useful skill to have.

01:48 Also note that the course does not cover setup methods that will persist across reboots of the cloud server that you choose. If the server is rebooted, then some of the steps, such as setting environment variables, will need to be repeated to get the site back online.

02:04 So now you know what you need and what you’ll be covering in this course, let’s get started.

Become a Member to join the conversation.