Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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-extensions .

Installation

Use your favorite Python installer to install it from PyPI:

$ pip install 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.registry import register
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.

Release Notes

  • Dropped dependency on django-uuid-pk. Now we use the UUIDField from django-extensions.
  • Added migrations for Django 1.7+ and South.
  • Documentation updates.
  • Added basic tests.
Release History

Release History

This version
History Node

0.1.0

History Node

0.1.0-alpha.1

History Node

0.1.0-alpha

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-uuidstore-0.1.0.tar.gz (17.2 kB) Copy SHA256 Checksum SHA256 Source Apr 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting