code: def _process_settings(**kwargs):
      
  
      # If we are in this method due to a signal, only reload for our settings
      setting_name = kwargs.get('setting', None) 
      if setting_name is not None and setting_name != 'QUERYCOUNT':
          return
  
      # Support the old-style settings
      if getattr(settings, 'QUERYCOUNT_THRESHOLDS', False):
          QC_SETTINGS['THRESHOLDS'] = settings.QUERYCOUNT_THRESHOLDS
  
      # Apply new-style settings
      if not getattr(settings, 'QUERYCOUNT', False):
          return
  
      # Duplicate display is a special case, configure it specifically
      if 'DISPLAY_DUPLICATES' in settings.QUERYCOUNT:
          duplicate_settings = settings.QUERYCOUNT['DISPLAY_DUPLICATES']
          if duplicate_settings is not None:
              duplicate_settings = int(duplicate_settings)
          QC_SETTINGS['DISPLAY_DUPLICATES'] = duplicate_settings
  
      # Apply the rest of the setting overrides
      for key in ['THRESHOLDS',
                  'IGNORE_REQUEST_PATTERNS',
                  'IGNORE_SQL_PATTERNS',
                  'IGNORE_PATTERNS',
                  'RESPONSE_HEADER']:
          if key in settings.QUERYCOUNT:
              QC_SETTINGS[key] = settings.QUERYCOUNT[key]
docs: Apply user supplied settings.