django-uuidfield

A UUIDField for Django

BSD-3-CLAUSE License

Downloads
31.8K
Stars
262
Committers
13

django-uuidfield

Provides a UUIDField for your Django models.

Installation

Install it with pip (or easy_install)::

pip install django-uuidfield

Usage

First you'll need to attach a UUIDField to your class. This acts as a char(32) to maintain compatibility with SQL versions::

from uuidfield import UUIDField

class MyModel(models.Model):
    uuid = UUIDField(auto=True)

Check out the source for more configuration values.

Enjoy!

Package Rankings
Top 30.4% on Conda-forge.org
Top 2.53% on Pypi.org