Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate random token or id in django

>>> from django.utils.crypto import get_random_string
>>> unique_id = get_random_string(length=32)
>>> unique_id
u'rRXVe68NO7m3mHoBS488KdHaqQPD6Ofv'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #random #token #id #django
ADD COMMENT
Topic
Name
6+8 =