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
def environment ( ** options ) : env = Environment ( ** options ) env . globals . update ( { 'static' : staticfiles_storage . url , 'url' : reverse , } ) env . globals . update ( context_processors . environment ( ) ) return env
Add ``static`` and ``url`` functions to the ``environment`` context
    processor and return as a Jinja2 ``Environment`` object.