I like to generate routes for my Flask app hosted on Google App Engine. Currently I am using blueprints to generate routes. For instance
conference_routes = Blueprint('conference_routes', __name__)
@conference_routes.route('/home/Conferences/QCCC-Mappleton-2015')
def mappleton_conference():
return render_template('Mappleton-2015.html')
And then I register the blueprint like so from the main.py
app.register_blueprint(conference_routes)
This is becoming really cumbersome, especially when we have over 100 routes. I wish to define routes in a database and dynamically construct them at runtime.
Is this possible ?