'Setup logging from LOGGING_CONFIG and LOGGING settings.'

def _configure_logging(self):

    if (not sys.warnoptions):
        try:
            logging.captureWarnings(True)
            warnings.simplefilter('default', DeprecationWarning)
        except AttributeError:
            pass
    if self.LOGGING_CONFIG:
        from django.utils.log import DEFAULT_LOGGING
        (logging_config_path, logging_config_func_name) = self.LOGGING_CONFIG.rsplit('.', 1)
        logging_config_module = importlib.import_module(logging_config_path)
        logging_config_func = getattr(logging_config_module, logging_config_func_name)
        logging_config_func(DEFAULT_LOGGING)
        if self.LOGGING:
            compat_patch_logging_config(self.LOGGING)
            logging_config_func(self.LOGGING)
