Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dcramer/django-uuidfield
- Owner: dcramer
- License: bsd-3-clause
- Created: 2010-09-01T06:15:14.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T16:56:43.000Z (over 7 years ago)
- Last Synced: 2024-05-22T15:09:27.166Z (4 months ago)
- Language: Python
- Homepage:
- Size: 380 KB
- Stars: 262
- Watchers: 17
- Forks: 117
- Open Issues: 30
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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!