docs: def require_settings(self, args, options):
          """
          Load the ZAPPA_SETTINGS as we expect it.
  
          """
  
          if not options.has_key('environment'):
              print(
                  "You must call deploy with an environment name. \n python manage.py deploy <environment>")
              raise ImproperlyConfigured
  
          from django.conf import settings
          if not 'ZAPPA_SETTINGS' in dir(settings):
              print(
                  "Please define your ZAPPA_SETTINGS in your settings file before deploying.")
              raise ImproperlyConfigured
  
          self.zappa_settings = settings.ZAPPA_SETTINGS
  
          # Set your configuration
          if type(options['environment']) == list:
              self.api_stage = options['environment'][0]
          else:
              self.api_stage = options['environment']
          if self.zappa_settings[self.api_stage].get('project_name'):
              self.project_name = self.zappa_settings[self.api_stage]['project_name']
          else:
              self.project_name = os.path.abspath(settings.BASE_DIR).split(os.sep)[-1]
          self.lambda_name = slugify(self.project_name + '-' + self.api_stage).replace("_","-")
          if self.api_stage not in self.zappa_settings.keys():
              print("Please make sure that the environment '" + self.api_stage +
                    "' is defined in your ZAPPA_SETTINGS in your settings file before deploying.")
              raise ImproperlyConfigured
  
          # Load environment-specific settings
          self.s3_bucket_name = self.zappa_settings[self.api_stage]['s3_bucket']
          self.vpc_config = self.zappa_settings[
              self.api_stage].get('vpc_config', {})
          self.memory_size = self.zappa_settings[
              self.api_stage].get('memory_size', 512)
          self.timeout = self.zappa_settings[
              self.api_stage].get('timeout', 30)
  
  
          custom_settings = [
              'http_methods',
              'parameter_depth',
              'integration_response_codes',
              'method_response_codes',
              'role_name',
              'aws_region'
          ]
          for setting in custom_settings:
              if self.zappa_settings[self.api_stage].has_key(setting):
                  setattr(self.zappa, setting, self.zappa_settings[
                          self.api_stage][setting])