def create_blueprint(name=None):
    # Create blueprint
    name = name or 'testblueprint'
    blueprint = Blueprint(name,
                          'testapp.{0}'.format(name),
                          template_folder='templates')

    # Initialize lazy views extension, register views and error handlers
    views = LazyViews(blueprint, import_prefix='.views')
    views.add('/', 'test')
    views.add('/advanced', 'advanced', methods=('GET', 'POST'))
    views.add('/error/<int:code>', 'custom_error')
    views.add('/gone', 'custom_error', defaults={'code': 410}, endpoint='gone')

    views.add_error(403, 'error')
    views.add_error(410, 'error', app=True)

    return blueprint
Find the L{IResource} avatar suitable for the given request, if
dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/testapp/testblueprint/blueprint.py/create_blueprint--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/web/_auth/wrapper.py/HTTPAuthSessionWrapper.render