docs: def environment(**options):
      """
      Add ``static`` and ``url`` functions to the ``environment`` context
      processor and return as a Jinja2 ``Environment`` object.
      """
      env = Environment(**options)
      env.globals.update({
          'static': staticfiles_storage.url,
          'url': reverse,
      })
      env.globals.update(context_processors.environment())
      return env