Short UUIDField for Django. Good for use in urls & file names. (Base 57, 22 characters)
Project description
django-shortuuidfield
----------------
Provides a ShortUUIDField for your Django models which uses the base-57 "Short UUID" package at https://github.com/stochastic-technologies/shortuuid/ .
Originally, a fork from David Cramer's excellent django-uuidfield, but not much is left of that besides a bit of structure.
Installation
============
Install it with pip (or easy_install)::
pip install django-shortuuidfield
Usage
=====
First you'll need to attach a ShortUUIDField to your class. This acts as a char(22) to maintain compatibility with SQL versions::
from shortuuidfield import ShortUUIDField
class MyModel(models.Model):
uuid = ShortUUIDField(auto=False)
Enjoy!
----------------
Provides a ShortUUIDField for your Django models which uses the base-57 "Short UUID" package at https://github.com/stochastic-technologies/shortuuid/ .
Originally, a fork from David Cramer's excellent django-uuidfield, but not much is left of that besides a bit of structure.
Installation
============
Install it with pip (or easy_install)::
pip install django-shortuuidfield
Usage
=====
First you'll need to attach a ShortUUIDField to your class. This acts as a char(22) to maintain compatibility with SQL versions::
from shortuuidfield import ShortUUIDField
class MyModel(models.Model):
uuid = ShortUUIDField(auto=False)
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
Close
Hashes for django-shortuuidfield-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fadcdd2502c00cb1b1aa8198593cd09874e5243866a3b9c06af473fef038402 |
|
MD5 | d4552f3c0915599e82232f380814edb8 |
|
BLAKE2b-256 | c479a72cb9123de2c9b66372868bd06d7d761cc2ccedab73dfbaa27edcb918cc |