def get_default_site(app_name='filebrowser'):
 resolver = get_resolver(get_urlconf())
 name = 'filebrowser'
 app_list = resolver.app_dict[app_name]
 if (name not in app_list):
  name = app_list[0]
 return get_site_dict()[name]

def get_default_site ( app_name = 'filebrowser' ) : resolver = get_resolver ( get_urlconf ( ) ) name = 'filebrowser' app_list = resolver . app_dict [ app_name ] if ( name not in app_list ) : name = app_list [ 0 ] return get_site_dict ( ) [ name ]
returns the default site .