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.5.0.tar.gz (4.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-uuidfield-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ec7db94ff6fc5b2a2f8edf6a9ab29b401a6a63d4523840fa0a3f1286ea45de86
MD5 507db78a92aeb19d2328811aeb598e72
BLAKE2b-256 36ababee9bf82ec32d68881f03ca4ce7df75e5fec666ed29a014ce808e848b53

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