DEV Community

Discussion on: June 30th, 2022: What did you learn this week?

Collapse
 
andypiper profile image
Andy Piper • Edited

I hit something small but interesting (it tripped me up, and I've been writing Python for a lot of years!). I'd started a new Flask project and had intended to keep API keys in a secrets file but then chose to run with environment variables holding them while I was testing. When I switched Flask to development mode, it threw an error - it turned out that it was finding my empty secrets.py file and complaining about it (but worked fine in "production"). TIL!

Collapse
 
nickytonline profile image
Nick Taylor

Bobby Moynahan character from SNL saying awesome!

Collapse
 
pyrsmk profile image
Aurélien Delogu

You mean "Flask"?

Collapse
 
andypiper profile image
Andy Piper

Yep, thanks - fixed!