from flask import Blueprint my_blue_print = Blueprint('my_blue_print', __name__, template_folder='templates' ) @my_blue_print.route('/test') def test(): print('test') print((1/0))