I am trying to make a simple flask program, but while exporting the application (using the command $ export FLASK_APP=hello) I am getting the error " 'export is not recognized as an internal or external command, openable program or batch file " Here is my terminal:
c:\Program Files\Python38-32>myproject\Scripts\activate
(myproject) c:\Program Files\Python38-32>export FLASK_APP=hello
'export is not recognized as an internal or external command, openable program or batch file.
(myproject) c:\Program Files\Python38-32>
I have searched in many websites but cannot find the solution. Any help will be appreciated.
CodePudding user response:
You are using Windows. Windows does not use the "export" command to set environment variables. Instead, you need:
set FLASH_APP=hello