i am doing a python-django project, And what i want to do is, i want to set
variables like password,db_name etc as an environment variable. And i want
to access it as os.environ["db_name"]
i tried like this
inside /home/thameem/Django_projects/lotus/env_var
export db_name="thameem"
inside /etc/environment file
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
PATH="$PATH:/home/thameem/Django_projects/lotus/env_var"
and in terminal i tried :
echo $db_name
but it does not shows the value of db_name
if the question is not correct, somebody please correct the question
i checked this one :: How do I add environment variables?