Skip to main content

UUIDField in Django

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-uuidfield-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file django-uuidfield-0.4.0.tar.gz.

File metadata

File hashes

Hashes for django-uuidfield-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5fc34db1ac3f36a81ab58a257a85ef80136caf21eee1c2a99ad6d58d24cafa52
MD5 bf4f394b194bc055be62407c88c8a060
BLAKE2b-256 324f3745787aa2bd8d5c70fb2b0cab59f0f80f9e853a01a1e5515d3a2cb325cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page