Answer the question
In order to leave comments, you need to log in
What could be the problem when running flask app?
We have a standard structure:
app/
__init__.py
routes.py
site.py
contents of
init.py files:
application = Flask(__name__)
from app import routes
if __name__ == '__main__':
application.run(debug=True)
from app import application
@application.route('/')
@application.route('/index.html')
def index():
return render_template("index.html")
from app import application
application.run(debug=True, port=5000)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question