Monday, May 18, 2020

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

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 local machine os.environ.get("SECRET_KEY") it give me the key but when I type the same command on VM instance it shows me null 

I have tried some method like to edit the 
1./etc/environment 
2.~/.bashrc 
but none of the files is giving me the secret Key 

waiting for expert answer 

thankyou 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/106781aa-6795-4828-8cda-fc4c4000f9f6%40googlegroups.com.

No comments:

Post a Comment