Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dcramer/django-uuidfield

A UUIDField for Django
https://github.com/dcramer/django-uuidfield

Last synced: about 2 months ago
JSON representation

A UUIDField for Django

Awesome Lists containing this project

README

        

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!