UUID

Posted: April 16th, 2010 | Author: Davo | Filed under: Django | Tags: | No Comments »

Generating UUID(A Universally Unique IDentifier) example: (only from python 2.5+)

>>> import uuid
>>> unique_id = str(uuid.uuid4())
>>> print unique_id
e31c4c33-2d02-49ef-a501-a9f947f86697
>>>

Reference: http://docs.python.org/library/uuid.html