Skip to main content
PyConZA 2026

From Localhost to Production: Deploying Python Web Apps on Ubuntu

Speaker Shaun De Ponte
Track Web development
Type Normal Talk

Abstract

You have built your new awesome app in Django, Flask, FastAPI, Sanic, but now what? How do you actually deploy it? How do you manage environment variables? How do you get SSL certificates? How do you serve static files? How do you manage your local development environment vs your production environment? How do you manage CI/CD pipelines? And if your app has asynchronous tasks or workers, this can leave you even more confused.


There are tons of tutorials online, but they are often confusing, disjointed, or focused on a specific cloud provider without really explaining what is happening underneath.


This talk is aimed at Python web developers who are comfortable building applications, but don't necessarily have a strong DevOps or infrastructure background.


We will take a step back from the usual "how do I deploy this to AWS, Azure, DigitalOcean or Hetzner?" approach and look at what deploying to a virtual machine actually means in practice. At the end of the day, regardless of the cloud provider, you are normally dealing with the same fundamental building blocks: an Ubuntu server, networking, DNS, processes, environment variables, a web server, SSL certificates, application services and CI/CD.


This talk will cover an end-to-end approach for deploying your Python web app on any virtual machine running Ubuntu, using nothing but open source software and an approach that I have been using for years.


We will go from a fresh Ubuntu virtual machine all the way to a production-ready Python web application, covering the pieces that tutorials often treat separately and showing how they all fit together.


Attendees will leave with a solid understanding of what actually happens when you deploy a Python web application, how the different components fit together, and enough practical knowledge to deploy and manage their own Python web application on Ubuntu regardless of which cloud provider they use.

Our sponsors

Thinkst
NITheCS
OfferZen
Afrolabs CoderLevelUp ESP Isazi Consulting Naughty Bean
SerpApi