@cached_property<EOL><INDENT>def ancestors(self):<DEDENT>
ancestors = []<EOL>parent = self.parent<EOL>while parent:<EOL><INDENT>ancestors.append(parent)<EOL>parent = parent.parent<EOL><DEDENT>return ancestors<EOL>
Get list of ancestors until app config's directory_base is reached.

:returns: list of ancestors starting from nearest.
:rtype: list of Node objects