Does flask
auto-detect changes to routes
?
For example, if i have a route like:
@app.route('/')
def home():
return "Show homepage"
If this is properly working, will a new route
like automatically be accessible at <my-server-ip>/blog
when i add this route below ?
@app.route('/')
def myblog():
return "Show myblog"
Full file:
@app.route('/')
def home():
return "Show homepage"
@app.route('/')
def myblog():
return "Show myblog"
if __name__ == '__main__':
app.run()
Note: home()
is already accessible