librelist archives

« back to archive

Subdomain routing for specific blueprint

Subdomain routing for specific blueprint

2014-10-23 @ 03:47

I'm looking at using subdomains in Flask application. I want to serve admin
pages on the subdomain separated to main service domain e.g.

Since we have to configure SERVER_NAME and default_subdomain of url_map to
enable the subdomain feature and use www. as default, however, the problem
is that we have more than one domain for application -- for example: some
view function serves both for<key> and<key>.

Is there any practices on this kind of case? Any help and insights would be
greatly appreciated.

Thank you.