def get_key(keyfile=None):
    """
    Read the key content from secret_file
    """
    keyfile = keyfile or application_path(settings.SECRETKEY.SECRET_FILE)
    with file(keyfile, 'rb') as f:
        return f.read()
Read the key content from secret_file