How to manage environment variables in Django with python-decouple

Опубликовано: 04 Октябрь 2024
на канале: Pybites
3,304
55

In this video we set up a Django project and manage environment variables with python-decouple. We show both the interface as well as some internals (using the debugger). Hope it helps you hit the ground running with this library.

Resources:
python-decouple package: https://pypi.org/project/python-decou...
Env variable management Pybites article: https://pybit.es/articles/how-to-hand...
Why does this even matter? Enter 12 Factor App: https://12factor.net/config
As we did a bit of debugging, here is another Pybites resource: https://pybit.es/articles/pdb-debugger/

----------------------------
Subscribe here to not miss any Pybites video: http://www.youtube.com/c/pybites?sub_...
----------------------------

There's plenty more to discover with PyBites:

For similar tips, just on Python instead, check out our Python tips book: https://pybit.es/tips

Habits make or break you. Code a Bite exercise every day: https://codechalleng.es

To work with us 1:1 to develop that complex project you've always wanted to build, check out our coaching program: https://pybit.es/catalogue/the-pdm-pr...

If you'd prefer to listen to us on the go, we discuss the mindset crucial for a successful developer on our podcast: https://www.pybitespodcast.com/

Visit us at https://pybit.es to find out how we can help you on your Python journey.

Also we'd love to hear what you want more training and content on, just comment below or send us an email at info at pybit.es!

The subtitles for this video were created using IronScribe, our transcription service:
https://www.ironscribe.io/