
from . import scores
from . import ui


def configure(config, bp, score_processor):

    @bp.route("/", methods=["GET"])
    def index():
        return render_template("home.html")

    bp = scores.configure(config, bp, score_processor)
    bp = ui.configure(config, bp)

    return bp


from . import scores
from . import ui


def configure(config, bp, score_processor):

    @bp.route("/", methods=["GET"])
    def index():
        return ui.render_template("home.html")

    bp = scores.configure(config, bp, score_processor)
    bp = ui.configure(config, bp)

    return bp

FIX 'render_template not defined' error
FIX 'render_template not defined' error

This was appearing if you try to open 'http://host:port/'
