from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'FRIENDS'
@app.route('/home')
def home():
return 'BARBAD, PARTI'
if __name__ == '__main__':
app.run(debug=True)
After google search I came to Know that if debug option is enabled then there is no need to restart the interpreter manually after each change to my code.. But I have also read in flask documentation:
Even though the interactive debugger does not work in forking environments (which makes it nearly impossible to use on production servers), it still allows the execution of arbitrary code. This makes it a major SECURITY risk and therefore it must never be used on production machines.
I am not getting how they have related it to SECURITY and other stuff. Can anyone help me in understanding what they are talking about? Thanks in advance....