@classmethod
def from_filename(cls, filename, namespace=None):
    """
        Initializes the config from a file named ``filename``. The file is expected to contain a variable named ``CONFIG``.
        """
    with open(filename, 'rb') as f:
        return cls.from_file(f, filename)
