def create_secret_key():
 import random
 import string
 secret_key = list(((string.letters + string.digits) + string.punctuation).replace('\\', '').replace("'", '"').replace('{', '_').replace('}', '-'))
 random.shuffle(secret_key)
 secret_key = ''.join(secret_key[:40])
 return secret_key

def create_secret_key ( ) : import random import string secret_key = list ( ( ( string . letters + string . digits ) + string . punctuation ) . replace ( '\\' , '' ) . replace ( "'" , '"' ) . replace ( '{' , '_' ) . replace ( '}' , '-' ) ) random . shuffle ( secret_key ) secret_key = '' . join ( secret_key [ : 40 ] ) return secret_key
randomly create the secret key for the settings file .