I have write a simple Flask application and hosted in Namecheap shared hosting,
from flask import Flask
app = Flask(name)
@app.get(“/”)
def index():
return “Hello, World!”
@app.get(‘/test’)
def testing():
return “
Hello, {}
”
The root(“/”) path works correctly, but the sub(/test) path gives a 404 (not found) error.
Please help me.
New contributor
Iroshan Herath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.