def long_token():
 hash = hashlib.sha1(shortuuid.uuid())
 hash.update(settings.SECRET_KEY)
 return hash.hexdigest()

def long_token ( ) : hash = hashlib . sha1 ( shortuuid . uuid ( ) ) hash . update ( settings . SECRET_KEY ) return hash . hexdigest ( )
generate a hash that can be used as an application secret .