Ask coding questions

← Back to all posts
How can I set Flask SERVER_NAME in replit?
ProgrammerAyush

I tried app.config["SERVER_NAME"] but it gives me an error that your current server name does not match the given server name. I need to edit the server name as I need to create subdomains. Please help.

I have tried changing the server name locally and it works but on replit, it does not works

Voters
ProgrammerAyush
Comments
hotnewtop
MrVoo

What would this change? You probably don't need it

ProgrammerAyush

@MrVoo I need subdomains that's why I need this