Re: [flask] Multi-tenant Support
- From:
- Daniel , Dao Quang Minh
- Date:
- 2011-04-20 @ 17:43
That approach worked great on my dev server. Our old approach was to use
request.url_root to fetch the domain and process it in @app.before_request.
Are there any pros/cons when comparing the two approaches ?
On Tue, Apr 19, 2011 at 3:48 PM, Armin Ronacher <armin.ronacher@active-4.com
> wrote:
> Hi,
>
> On 2011-04-19 8:55 AM, Daniel , Dao Quang Minh wrote:
> > I'm developing an application that requires support for multi-tenant. It
> > should accept request with different domain and perform actions based on
> > the domain name. All domains are stored inside database. Any idea how i
> > can do it with flask/werkzeug will be really appreciated.
> Read this and the links therein to alternative solutions:
> http://flask.pocoo.org/docs/patterns/appdispatch/
>
> Regards,
> Armin
>