code: def get_env(name, default=None):
      
      if name in os.environ:
          return os.environ[name]
  
      if default is not None:
          return default
  
      error_msg = "Set the {} env variable".format(name)
      raise ImproperlyConfigured(error_msg)
docs: Get the environment variable or return exception