![]() ![]() ![]() hello.py should look like this now: from flask import FlaskĪnd run it with: FLASK_APP=hello.py flask run ![]() With the new flask release there is no need to run the app from your script. Then create a file named hello.py (NOTE: see UPDATE Flask 1.0.2 below): from flask import Flask Now you should see (flask) on the left of the command line.Įdit: In windows there is no "source" that's a linux thing, instead execute the activate.bat file, here I do it using Powershell: PS C:\DEV\aProject>
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |