<shamelessplug>
The softwarefabrica.django.utils library includes, among other things,
an UUIDField which you can use in your Django models as the primary
key. In fact I'm using it for all my new projects.
An example of usage:

from softwarefabrica.django.utils.UUIDField import UUIDField

class Wiki(models.Model):
    uuid = UUIDField(_("uuid"), primary_key=True, db_index=True)
    ...

You can download softwarefabrica.django.utils from the cheeseshop
(PyPI):

http://pypi.python.org/pypi/softwarefabrica.django.utils

it's also installable with easy_install:

easy_install softwarefabrica.django.utils

and finally, check out also the development home page on Launchpad:

https://launchpad.net/sf-django-utils

</shamelessplug>

Ciao,
Marco

On Dec 17, 5:15 am, Chuck22 <cba...@gmail.com> wrote:
> 1. I want to create Global Unique ID (GUID) as the primary key of my
> database table. Is there GUID available in Django or Python?
>
> 2. Also, I need to create a Authorization Code (random char/number
> string) to verify user's email when people sign up on my site. Is
> there generic method in Django or Python to create such code?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to