Talk Python To Me cover image

#277: 10 tips every Django developer should know

Talk Python To Me

00:00

Using Python Decouple and a DJ Database

Python decouple is a tool that lets you import, for example, from the couple import config and maybe CSV depending on the setting. And then you can just do secret key equals config and then the key, right? Secret key, which is the actual secret key line in your.env file. So magically, those that there's an. env file reads it in and extracts the key from it. This is really cool. I hadn't heard of that one. That's neat. Yeah. You don't have to obviously have to have the right database URL string in your.env file, but it's much easier. It feels right, right? The database strings often contain username

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app