from django.core.checks import Error
from django.core.files.storage import FileSystemStorage, default_storage


def storage_check(app_configs, **kwargs):
    if isinstance(default_storage, FileSystemStorage):
        return [
            Error(
                'FileSystemStorage should not be used in a production environment.',
                hint='Please verify your DEFAULT_FILE_STORAGE setting.',
                id='s3file.E001',
            )
        ]

from django.core.checks import Error
from django.core.files.storage import FileSystemStorage, default_storage


def storage_check(app_configs, **kwargs):
    if isinstance(default_storage, FileSystemStorage):
        return [
            Error(
                'FileSystemStorage should not be used in a production environment.',
                hint='Please verify your DEFAULT_FILE_STORAGE setting.',
                id='s3file.E001',
            )
        ]
    return []

Fix deployment check return value
Fix deployment check return value

AssertionError: The function <function storage_check at 0x7f8571c1a048> did not return a list. All functions registered with the checks registry must return a list.

  from django.core.checks import Error
  from django.core.files.storage import FileSystemStorage, default_storage
  
  
  def storage_check(app_configs, **kwargs):
      if isinstance(default_storage, FileSystemStorage):
          return [
              Error(
                  'FileSystemStorage should not be used in a production environment.',
                  hint='Please verify your DEFAULT_FILE_STORAGE setting.',
                  id='s3file.E001',
              )
          ]
+     return []
  
Fix deployment check return value
## Code Before:
from django.core.checks import Error
from django.core.files.storage import FileSystemStorage, default_storage


def storage_check(app_configs, **kwargs):
    if isinstance(default_storage, FileSystemStorage):
        return [
            Error(
                'FileSystemStorage should not be used in a production environment.',
                hint='Please verify your DEFAULT_FILE_STORAGE setting.',
                id='s3file.E001',
            )
        ]

## Instruction:
Fix deployment check return value
## Code After:
from django.core.checks import Error
from django.core.files.storage import FileSystemStorage, default_storage


def storage_check(app_configs, **kwargs):
    if isinstance(default_storage, FileSystemStorage):
        return [
            Error(
                'FileSystemStorage should not be used in a production environment.',
                hint='Please verify your DEFAULT_FILE_STORAGE setting.',
                id='s3file.E001',
            )
        ]
    return []
