Answer the question
In order to leave comments, you need to log in
How to stop a Flask application?
There is a test.py file with the code:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return 'hello, World'
# if __name__ == '__main__':
# app.run()
app.run()
Answer the question
In order to leave comments, you need to log in
Looks like I figured out what the problem was.
I first launched this file with the code for execution in Sublime Text (Ctrl + B), then closed Sublime Text and launched the file via cmd.
Then I pressed Ctrl + C in cmd, but everything continued to work on localhost.
Looks like Sublime somehow cached everything....
Rebooted the computer, started with cmd and everything was fine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question