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!
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
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!You mean "Flask"?
Yep, thanks - fixed!