Skip to main content
← Back to Schedule

The Django UUID Story

to View on time.is

Sauganash Ballroom

About this session

My first larger contribution to Django started during the sprints at DjangoCon Europe 2017 in Florence, where I worked on exposing database-side RandomUUID generation for UUIDv4 in contrib.postgres, so for me this topic has a very personal history inside the project.

Since then the way Django handles UUID generation has evolved, and recent changes extended these functions beyond PostgreSQL while also adding support for UUIDv7, which brings time ordering and new possibilities for modern database schemas.

In this talk I show how these UUID functions work in Django today, how UUIDv4 and UUIDv7 differ in practice, and how Django can generate UUID values at the Python side or at the database side depending on the backend and the use case.

This talk is especially useful for developers who already know Django models and want to better understand how UUID generation fits into real applications, migrations and schema design, especially now that support is broader and more flexible than before.

Presented by

  • Paolo Melchiorre

    Paolo Melchiorre

    I'm Paolo Melchiorre (aka paulox), a Python backend developer, Django contributor, and Python Software Foundation Fellow.

    As a member of the Django Software Foundation, I serve also as a board member. Additionally, I’m a coach and organizer for Django Girls, and a navigator for the Djangonaut Space mentorship program.

    In my community involvement, I organize PyCon Italia, have founded the local Python Pescara community, and am a member of the Python Italia association.

    As a professional, I’m also a conference speaker, technical blogger at www.paulox.net, a GNU/Linux user, and a Free Software advocate. My academic background includes a degree in Computer Engineering from the University of Bologna.