Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate 50 characters long for django

def get_random_secret_key():
    """
    Return a 50 character random string usable as a SECRET_KEY setting value.
    """
    chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
    return get_random_string(50, chars)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #characters #long #django
ADD COMMENT
Topic
Name
4+9 =