Python (Flask) - How to set up Environment Variables ( And What are they)

preview_player
Показать описание
How to set up and use Environment Variables with Python
-------------------------
Thanks for watching, if the video was helpful to you a like and/or a star to the github repo would be appreciated ❤️
Рекомендации по теме
Комментарии
Автор

Easy to follow and to the point. Thanks!

alexanderscott
Автор

Thanks for this Vuka! Learned a lot.

Another way to do it is by storying the config key-value pairs in a dictionary, and accessing it that way. So that instead of doing os.getenv('API_Key') you could store the environment variables in a dictionary called cfg or config and then access them as cfg['API_Key'] or config['API_Key']

richardogujawa-oldaccount
Автор

Right on point, thanks for making the video!

vanivnair
Автор

Thank you for this demo. Curious how this works when you push to github - like integration of what's stored in .env and when someone else clones your project and wants to run on their own system?

bls
Автор

Exactly what I been needing tearing my hair out. Cheers

mariachiinajar