I have several records in the database which I Want to form URLs like so:
mysite.com/post/todays-post-will-be-about
The todays-post-will-b
todays-post-will-b
Use the @app.route decorator like shown below:
@app.route
@app.route('/post/') def show_post(post_title): #use post title to fetch the record from db
More examples are available under the Routing section: http://flask.pocoo.org/docs/0.10/quickstart/#routing