Django Hosting & Deployment Options

Django websites can be deployed on any number of hosting providers. The first choice is deciding whether to use a Platform-as-a-service (PaaS) option or a virtual private server (VPS). A PaaS is an easier albeit more expensive option that can handle many deployment issues with minimal configuration. A VPS is less expensive and provides total control but requires more knowledge and effort to setup.

Platform-as-a-Service Options

Heroku

Heroku is the original PaaS. It has a free tier for small projects and progressive pricing as a site grows in size. There is also a robust add-on ecosystem for additional services like database hosting, caching, logging, and more. Check out the Heroku Django Getting Started Guide.

Digital Ocean

Digital Ocean's App Platform rolls everything you need into an easy-to-use UI. Check out this tutorial to get up and running quickly with hosted database and fast deploys.

PythonAnywhere

Recently acquired by Anaconda, PythonAnywhere is another PaaS option that specializes in online Python environments. It features a free tier and upgraded plans that start at $5/month. Deploying an existing Django app is straightforward and also demonstrated as part of the excellent DjangoGirls Tutorial.

Fly.io

Fly is a newer hosted option that has physical servers across the globe to be closer to users. It is fully hosted with PostgreSQL clusters and a generous free tier.

Render

Render is also a newish but quite popular cloud option that allows for deploys directly from Github or Gitlab, similar to Netlify. Has options for hosted databases, cron jobs, and more.

Appliku

Appliku is a Django-focused service makes it easier to deploy on either AWS or Digital Ocean. Add your server, Git repo, and deploy in five minutes.

Microsoft Azure

A managed PaaS option that includes a nice video tutorial series with my DjangoChat podcast co-host Carlton Gibson.

Google Cloud

Google provides multiple PaaS options starting with App Engine and more advanced options including Kubernetes and Compute Engine.

Dokku

A lightweight, open source Docker-powered PaaS that promises to be cheaper than alternatives. There are some good tutorials on using it.

CapRover

CapRover is a free and open source PaaS that can be used on top of a Digital Ocean droplet.

Virtual Private Servers

Digital Ocean

If you're comfortable doing basic server configuration, for as little as $5/month you can host your entire Django project on Digital Ocean. They have fantastic documentation and one-click installs for common setups like Ubuntu.

Linode

Linode is another very popular VPS provider also starting at $5/month that has fantastic customer support.

AWS Lightsail

Amazon's AWS is famously complex and Lightsail bills itself as the "easiest way to get started" by offering virtual servers, storage, databases, and networking in a monthly plan. Appropriate for small applications.

AWS Elastic Beanstalk

Elastic Beanstalk is an orchestration tool that provides a layer of abstraction over AWS's 100+ services. It does all the work to create an EC2, install apps, provides a load balancer, and so on. Lightsail is designed for prototypes while Elastic Beanstalk is more suited to scaling an existing application. It is likely more expensive than raw EC2, which is just a remote Linux machine.

Join My Newsletter

Subscribe to get the latest tutorials/writings by email.

    No spam. Unsubscribe at any time.