def find_site():
    """Find the site by looking at the environment."""
    try:
        settings_module = os.environ['DJANGO_SETTINGS_MODULE']
    except __HOLE__:
        raise AssertionError("DJANGO_SETTINGS_MODULE not set.")

    settingsl = settings_module.split('.')
    site = __import__(settingsl[0])
    settings = __import__(settings_module, {}, {}, settingsl[-1])
    return site, settings
dataset/ETHPy150Open dokterbob/satchmo/satchmo/projects/load_data.py/find_site