The uuid module is part of Python's standard library. Lots of options
there for generating various forms of uuid values.
>
> 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?
The random module is your friend here:
''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789') for i in range(20)])
is one possibility. For more advanced stuff, have a look at
django/contrib/auth/tokens.py, although that will require reading and
comprehending some code.
Regards,
Malcolm