How to install Python/Django modules on production?

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Poetry

    Python packaging and dependency management made easy

    I highly recommend Poetry for dependency management in Python. Much more sane than using pip.

  • Pipenv

    Python Development Workflow for Humans.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • fpm

    Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.

    I use FPM (https://github.com/jordansissel/fpm) to build a .deb package, which I install using Ansible. The package includes a virtualenv with all the Python dependencies as well as all the static files. I use a set of Make tasks to automate building the app, setting up the venv, placing the static files, and making the .deb. I upload my packages to a reprepro package repository that I manage (if I could do it again, I might use Aptly instead). I then use Ansible to set up the package repository, install the package, and place config files. It was a lot of work to set up but the production environment is all automated.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts