0
why we use (__name__) in flask?
what is the reason we use (__name__) in flask? and what if we dont use it?
2 Answers
0
app = Flask(__name__)
__name__ is a special variable that tells the script the scope it's called from. The __name__ will be the calling script when the file is being imported.
It is like an instantiator for Flask.
You could Google search for more info on the subject.
Happy Coding đ
0
Please use search function first.