Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 480.9k

app=Flask(_name_) name is not defined

Aug 11 2020 6:55 AM
Hi Team
 
How do i copy function, i want to use this code im struggling with @ sign
  1. from flask import Flask  
  2. app = Flask(__name__)  /
  3.  
  4. @app.route('/') how to use @app.route inside nano file in linux when using raspberry-pi?  
  5. def hello_world():  
  6.     return 'Hello, World!'  
 

Answers (1)