def get_middleware(exclude=(), append=(),
                   current={'middleware': MIDDLEWARE_CLASSES}):

    current['middleware'] = tuple(
        [m for m in current['middleware'] if m not in exclude]
    ) + tuple(append)
    return current['middleware']
Returns MIDDLEWARE_CLASSES without the middlewares listed in exclude and
dataset/ETHPy150Open mozilla/funfactory/funfactory/settings_base.py/get_middleware