[Python] Web Server Issue [closed]

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I am studying from the book "Head First Python, 2nd Edition". And I have this specific code in Flask:

    from flask import Flask
    app = Flask(__name__)
    app.route("/")
    def hello() -> str:
    return "Hello world from Flask!"
    app.run()


    I followed everything from the book, made no mistakes, and yet I still get the error "URL Not Found". I have searched everywhere for a solution to this problem, but it hasn't helped. Could you please advise what to do?

    Continue reading...

Compartilhe esta Página