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
I’m Paolo Melchiorre (aka
paulox), an independent consultant working with Python and Django, and a contributor to Django and the wider Python ecosystem.I’m a Fellow of the Python Software Foundation and a board member of the Django Software Foundation. I’m also a co-founder of Python Pescara and Django on the Med.
My technical expertise includes Django internals, especially the ORM, Python and its standard library, code modernization and testing, and database features, with long-standing experience in PostgreSQL.
I’m a conference speaker and technical blogger at www.paulox.net, where I write about Python, Django, PostgreSQL, and Free Software, and more recently about the impact of AI-assisted development on Open Source.