def create_env():
 searchpath = list(settings.JINJA2_TEMPLATE_DIRS)
 return Environment(loader=FileSystemLoader(searchpath), auto_reload=settings.TEMPLATE_DEBUG, cache_size=getattr(settings, 'JINJA2_CACHE_SIZE', 50), extensions=getattr(settings, 'JINJA2_EXTENSIONS', ()))

def create_env ( ) : searchpath = list ( settings . JINJA2_TEMPLATE_DIRS ) return Environment ( loader = FileSystemLoader ( searchpath ) , auto_reload = settings . TEMPLATE_DEBUG , cache_size = getattr ( settings , 'JINJA2_CACHE_SIZE' , 50 ) , extensions = getattr ( settings , 'JINJA2_EXTENSIONS' , ( ) ) )
create a new jinja2 environment .