How do you create subdomains?
I have this website and I want to create a subdomain in flask for it. When I do the subdomain keyword argument in the route function, it doesn't work. Is there any other way to do it?
Voters
Ask coding questions
I have this website and I want to create a subdomain in flask for it. When I do the subdomain keyword argument in the route function, it doesn't work. Is there any other way to do it?
Hi there! Sadly, using code to create new subdomains dosent work. This is because your repl is assigned to one subdomain, and it isnt in the framework to create one w/code.
If this affects you, contacting the replIT team to see if they can do anything would be worth a try. You can also link a domain for it to work, but you would need to purchase one first.
Hope this helped!
@novaflippers Ok, thank you for that.
@ShivankChhaya Your welcome, glad I could help!