Site-wide UUIDs for Django projects
Project description
A small Django app providing project-wide issue and storage of UUIDs.
Although this is very much a work in progress, I’ve made a start on the documentation at readthedocs.org
Dependencies
UID-Store currently depends on django-uuid-pk 0.2 .
Installation
Use your favorite Python installer to install it from PyPI:
$ pip install django-uuidstore
If you are using pip version 1.4 or later you’ll need to explicitly allow pre-release installation:
$ pip install --pre django-uuidstore
Or get the source from the application site:
$ hg clone https://bitbucket.org/mhurt/django-uuidstore $ cd django-uuidstore $ python setup.py install
Configuration
Add 'uuidstore' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = { ... 'uuidstore' }
For Django 1.7 users, run python manage.py migrate to create the models. Otherwise simply run python manage.py syncdb.
Getting Started
First you’ll need to register your model with uuidstore:
# models.py ... ... import uuidstore uuidstore.register(MyModel)
From this point onwards each time a MyModel instance is saved uuidstore will detect it and, if create new ObjectUUID instance containing a UUID relating your model instance.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-uuidstore-0.1.0-alpha.tar.gz
.
File metadata
- Download URL: django-uuidstore-0.1.0-alpha.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c012d4470e2957a24eeb1e7ac7c6ebcaf2802fa47c7aa02f2242ccdfa8353c8a |
|
MD5 | 601f06f0c6611b41bd304d37cbbcd3fd |
|
BLAKE2b-256 | 1559ae7a02423af52d8ff14764f67f78718b1e045e9e5799f034e56bd15eea7b |