from flask import Blueprint foo = Blueprint( name='foo', import_name=__name__ ) @foo.route('/') def testing(): return 'Testing'