0

why we use (__name__) in flask?

what is the reason we use (__name__) in flask? and what if we dont use it?

9th Dec 2020, 7:52 AM
harshit
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 😀
9th Dec 2020, 9:58 AM
Tomiwa Joseph
Tomiwa Joseph - avatar
0
Please use search function first.
9th Dec 2020, 8:15 AM
JaScript
JaScript - avatar