5

This can be easily solved by noting which terminal the export command was executed in the same terminal window that flask is running in (will be prompted to run in after the export command). Otherwise, flask cannot recognize the API_KEY as an environment variable, hardly being an environment variable.


4

Make sure you're running flask in the same terminal window in which you exported the keys.


Only top voted, non community-wiki answers of a minimum length are eligible