[Python] Flask doesn't give the URL on the terminal [duplicate]

Discussão em 'Python' iniciado por Stack, Julho 24, 2025.

  1. Stack

    Stack Membro Participativo

    from flask import Flask
    app = Flask(__name__)

    @app.route('/') #called route decorator , tells flask jab bhi koi home page visit karega to hum ye code return karenge
    def home():
    return 'Hello user this is my first flask app


    It shows absolutely nothing on the terminal when I run this code. Ignore the comment, it is in my first language.

    Continue reading...

Compartilhe esta Página