Gcobani Mkontwana

Gcobani Mkontwana

  • 1.1k
  • 978
  • 53.1k

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!'  
 

Brought to you by:

Answers (1)