Ask coding questions

← Back to all posts
How do you create subdomains?
ShivankChhaya (236)

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?

Answered by novaflippers (62) [earned 5 cycles]
View Answer
Comments
hotnewtop
novaflippers (62)

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 (62)

@ShivankChhaya Your welcome, glad I could help!