def METHOD_NAME(self):
    if not self.main_resource:
        raise ImproperlyConfigured(
            "'%s' should either include a `main_resource` "
            "attribute, or override the `get_main_resource()` method."
            % self.__class__.__name__
        )
    return import_string(self.main_resource)