How to Create Multiple Subdomains from the Same Flask Blueprint

Showing how to reuse a blueprint for several subdomains

How to Create Multiple Subdomains from the Same Flask Blueprint

Sometimes, your apps may be required to display the same template, but different or still the same values. A concrete example may be that you want your users to have different subdomains, something like ibrahim.ewetoye.com and anotherperson.ewetoye.com.

The most basic implementation of such a scenario is shown here.