docs: def getConf(cls, settings, options):
          "updates the options dict to use config options in the settings module"
          ports = ['http_port', 'https_port', 'cache_port']
          for port_name in ports:
              port = getattr(settings, port_name.upper(), None)
              # only use the settings ports if the defaults were left unchanged
              default = getattr(defaults, port_name.upper())
              if port and options.get(port_name) == default:
                  options[port_name] = port
  
          _opts = [
              ('key', 'hx_private_key'),
              ('cert', 'hx_certficate'),
              ('wsgi', 'wsgi_application')
          ]
          for opt_name, settings_name in _opts:
              opt = getattr(settings, settings_name.upper(), None)
              if opt:
                  options[opt_name] = opt
  
          if not options['settings']:
              options['settings'] = environ['DJANGO_SETTINGS_MODULE']
          return options