URL Converters - Flask Web Development with Python 28
Welcome to part 28 of our Flask web development tutorial series. In this tutorial, we're going to be discussing custom converters. The idea of these custom converters is to allow us to create very dynamic URLs, where part of the URL is actually treated as a variable.
An example of where this may prove useful might be where you have something with pagination, or maybe a user account page. Another example would be with PythonProgramming.net's development version content management system, where we have lots of pages that are almost identical, where the only main difference in the function itself is the URL and the template that is rendered, along with some minor variable changes along the way. Let's start with a simple example of a converter.
Text-based tutorial and sample code for this tutorial: http://pythonprogramming.net/flask-url-converters-tutorial/