code: def registration_settings(request):
      '''Expose selected settings to templates'''
      context = {}
      for setting in (
              'WAFER_SSO',
              'WAFER_HIDE_LOGIN',
              'WAFER_REGISTRATION_OPEN',
              'WAFER_REGISTRATION_MODE',
              'WAFER_TALKS_OPEN',
              'WAFER_VIDEO_LICENSE',
      ):
          context[setting] = getattr(settings, setting, None)
      return contexf registration_settings(request):
      '''Expose selected settings to templates'''
      context = {}
      for setting in (
              'WAFER_SSO',
              'WAFER_HIDE_LOGIN',
              'WAFER_REGISTRATION_OPEN',
              'WAFER_REGISTRATION_MODE',
              'WAFER_TALKS_OPEN',
              'WAFER_VIDEO_LICENSE',
      ):
          context[setting] = getattr(settings, setting, None)
      return context
docs: Expose selected settings to templates