Conceptual
Login

UUID Primary Keys in Django Models

A model can use a UUID, a random 128-bit value, as its primary key instead of a counting integer. UUIDs are safe to show in URLs and never clash across databases, but the same row has different ids in different environments.

This Concept is waiting for its first lesson!

Are you a teacher? Sign in to start contributing.

Sign In