required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Anirudh choudhary
Hello everyone I am hosting my website on google cloud platform on Ubuntu VM instance. I cannot find a way to set the environment variable in the machine Like when I type on my local machine os.environ.get("SECRET_KEY") it give me the key but when I type the same command on VM instance it shows m

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
You need to save in ~/.profile On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote: > > Hello everyone > > I am hosting my website on google cloud platform on Ubuntu VM instance. I > cannot find a way to set the environment variable in the machine > > Like when I type on my loca

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
You can refer the link below: 1. https://cloud.google.com/community/tutorials/secrets-manager-python On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote: > > Hello everyone > > I am hosting my website on google cloud platform on Ubuntu VM instance. I > cannot find a way to set t

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-19 Thread Anirudh choudhary
thanks for your answer after your answer, I have tried to edit the ~/.profile file and /etc/profile/ but still, I can't see my key inside my VM instance i am putting SECRET_KEY="jhsgdjadtad876s87dsadsad7sa" in the above file .but when i run the command "env" i can see my key thankyou On Tue,

RE: Re: required help to save SECRET_KEY and Third party Private API key

2020-05-19 Thread Vishesh Mangla
Why don’t you use the decouple module? Use it and add it to your gitignore.  Sent from Mail for Windows 10 From: Anirudh choudharySent: 19 May 2020 13:14To: django-users@googlegroups.comSubject: Re: required help to save SECRET_KEY and Third party Private API key thanks for your answer  after your