def get_can_use_amazon_s3():
 try:
  if has_module(u'storages.backends.s3boto', members=[u'S3BotoStorage']):
   return (True, None)
  else:
   return (False, _(u'Amazon S3 depends on django-storages, which is not installed'))
 except ImproperlyConfigured as e:
  return (False, (_(u'Amazon S3 backend failed to load: %s') % e))

def get_can_use_amazon_s3 ( ) : try : if has_module ( u'storages.backends.s3boto' , members = [ u'S3BotoStorage' ] ) : return ( True , None ) else : return ( False , _ ( u'Amazon S3 depends on django-storages, which is not installed' ) ) except ImproperlyConfigured as e : return ( False , ( _ ( u'Amazon S3 backend failed to load: %s' ) % e ) )
check whether django-storages is installed .