docs: def scan_django_settings(values, imports):
      '''Recursively scans Django settings for values that appear to be
      imported modules.
      '''
      if isinstance(values, (str, bytes)):
          if utils.is_import_str(values):
              imports.add(values)
      elif isinstance(values, dict):
          for k, v in values.items():
              scan_django_settings(k, imports)
              scan_django_settings(v, imports)
      elif hasattr(values, '__file__') and getattr(values, '__file__'):
          imp, _ = utils.import_path_from_file(getattr(values, '__file__'))
          imports.add(imp)
      elif hasattr(values, '__iter__'):
          for item in values:
              scan_django_settings(item, imports)