Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Purpose of django-environ?

What is DJANGO-ENVIRON ?

For what it can be used and How to use it ?

I saw django-environ in one project, try to understand it and unsuccess, it's doc

but understand nothing

like image 339
Anuar Akhmetov Avatar asked Jan 01 '26 02:01

Anuar Akhmetov


1 Answers

For example lets say you have the development environment (the computer you're doing development on) and the deployment environment (the server you're doing to publish the server on) instead of dealing with the path of each file or database once in every environment, you could set them as an environment variable in the server and the development machine, you could just tell the settings.py to look for the path in the environment variable.

thats as simple as i can get it.

like image 85
Hamad AlGhanim Avatar answered Jan 02 '26 16:01

Hamad AlGhanim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!