The Problem:
I have moved over to Visual Studio Code in order to try to learn to program in a real IDE, however I am low in experience.
What I have done:
I have done the following to get it up and running:
Installed:
VS Code,
Python,
Postgres,
PGAdmin
pip
I have:
- Changed the path of python following a tutorial.
- Installed flask, flask-session and SQLAlchemy.
- Used the following "set FLASK_APP=application.py" and "set FLASK_DEBUG=1" and also "set DATABASE_URL= url of database" both in cmd and in visual studio terminal
The Error Message
However whenever I run flask run I get the following error message in the CMD
"flask no se reconoce como un comando interno o externo programa o archivo por lotes ejecutable"
In visual studio I get this error message when I run 'flask run':
flask : El término 'flask' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si
escribió correctamente el nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e inténtelo de nuevo.
En línea: 1 Carácter: 1
+ flask run
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (flask:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The Question:
I am using Windows 10. How can I get this working?