def get_can_use_openstack_swift():
 try:
  if has_module(u'swift.storage', members=[u'SwiftStorage']):
   return (True, None)
  else:
   return (False, _(u'OpenStack Swift depends on django-storage-swift, which is not installed'))
 except ImproperlyConfigured as e:
  return (False, (_(u'OpenStack Swift backend failed to load: %s') % e))

def get_can_use_openstack_swift ( ) : try : if has_module ( u'swift.storage' , members = [ u'SwiftStorage' ] ) : return ( True , None ) else : return ( False , _ ( u'OpenStack Swift depends on django-storage-swift, which is not installed' ) ) except ImproperlyConfigured as e : return ( False , ( _ ( u'OpenStack Swift backend failed to load: %s' ) % e ) )
check whether django-storage-swift is installed .