Home > Net >  My terminal don't show me nothing when Running a webpy
My terminal don't show me nothing when Running a webpy

Time:11-29

when i running a web.py my terminal don´t show me nothing

from flask import Flask
from flask import render_template

app=Flask(__name__)

@app.route('/')
def home():
    return render_template('sitio/index.html')
    
if __name__ == '__main__ ':
    app.run(debug=True)

error

i don't now why the terminal dont show me nothing. i save the file correctly and i open the file in the folder that i kept but When i run the code the terminal dont show me nothing.

CodePudding user response:

You have an extra space in

if __name__ == '__main__ ':

Should be

if __name__ == '__main__':

  • Related