Skip to content

Tag: flask

terminal error: flask run zsh: command not found: flask

I’m using a Mac , the python version is 2.7.10. and I installed flask I try to follow the tutorial of flash on http://flask.pocoo.org/docs/1.0/ the commands: code in flaskblog.py: The error is command not found: flask I also tried an other tutorial. commands: code in one.py the condition __name__ == &#8…

Flask url_for – incorrect static folder path

I’m trying to add an image to my quiz.html page with Flask using: When I look at the page source, it’s interpreted as: http://127.0.0.1:5000/quiz/static/img/question-mark.png rather than: http://127.0.0.1:5000/static/img/question-mark.png Yet, my .css files and .js files load in quiz.html using th…