def get_site_url():
    try:
        from_site_config = m.config.Config.get('site', 'site_domain', None)
        from_settings = get_setting_value('SERVER_NAME', None)
        if from_settings and not from_settings.startswith('http'):
            from_settings = 'http://%s/' % from_settings
        return from_site_config or from_settings or request.url_root
    except __HOLE__:
        return 'http://localhost/'
dataset/ETHPy150Open rochacbruno/quokka/quokka/utils/settings.py/get_site_url