Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem with Blueprints subdomain setup #105

Open
medmin opened this issue Sep 18, 2016 · 1 comment
Open

A problem with Blueprints subdomain setup #105

medmin opened this issue Sep 18, 2016 · 1 comment

Comments

@medmin
Copy link

medmin commented Sep 18, 2016

Hi, I just found a tiny problem about the blueprints subdomain.

According to a stackoverflow answer, if you use a subdomain setup, you have to config a SERVER_NAME and you have to setup a default subdomain, such as "www":

app.config['SERVER_NAME'] = "localhost:5000"
app.url_map.default_subdomain = "www"

If you do not do the config above,
app.register_blueprint(site, subdomain='<site_subdomain>')
The code would not work.

Maybe I am wrong. But I tested it. And the subdomain could not work if I did not config the 'SERVER_NAME' and default_subdomain

My point is that your book in the session about subdomain, your code does not config the SERVER_NAME or default_submain, but it seems your code still works.

Would you like to talk about the subdomain issue more specific? Thank you .

@gotounix
Copy link

gotounix commented Nov 1, 2018

@medmin Hi, I have the same problem. Did you fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants