I am trying to use the Flask subdomain parameter, but have some problems.
I configured the local file / etc / hosts / file to point example.com and blog.example.com to 127.0.0.1.
For the ' index route, the subdomain parameter is not captured when I look at http://blog.example.com//000 . When I try to print var , it prints "var is".
The " login " route is 404s, but I cannot understand why. Any help would be greatly appreciated!
from flask import Flask app = Flask(__name__) app.debug=True app.config['SERVER_NAME'] = 'example.com'
source share