Skip to content

shantilabs/django-public-id

Repository files navigation

django-public-id Build Status Coverage Status

Long non-incremental IDs for public links.

Install

pip install django-public-id

Requirements

  • Python 2.7, 3.5+
  • Django 1.9+

Settings

put in settings.py (optional):

# use readable uuid by default
# example '831ff937-cb26-4876-ab94-d6cf44ad4ec1'
PUBLIC_ID_CHARS = None

# uuid with given chars (length will be enough to store 128 bits)
# example: '14URANtr8RaUTzZS05HIEp'
PUBLIC_ID_CHARS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'

Usage

About

Django form field which is essentially a more compact form of UUID. It uses 22 bytes to store 128-bit value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages