DEV Community 👩‍💻👨‍💻

Discussion on: 4 Useful Django Packages

Collapse
 
earthcomfy profile image
Hana Belay

Thanks for the info.
How about using python-dotenv instead of python-decouple? what are the major differences if there is any?

Collapse
 
ramkumarm15 profile image
Ramkumar Author

Not much difference! In python-dotenv, you need to load .env file in settings.py to access the data. In python-decouple you can directly access the data. Additionally, python-decouple specifically build for django and flask environment variables,

Collapse
 
earthcomfy profile image
Hana Belay

Okay, thanks!