Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread vineeth sagar
Use this https://github.com/jpadilla/django-dotenv/blob/master/README.rst If you have copied the GitHub template of .gitignore then the .env won't be in your history of vs. I used this in production and development without a single problem. On Nov 30, 2018 11:54 PM, "Carsten Fuchs" wrote: > Am

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Carsten Fuchs
Am 30.11.18 um 18:50 schrieb Sandip Nath: I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? In your settings.py, you could write

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread ljh . holmes
I typically create a second file which stores my sensitive data and import it as a variable. Then can exclude say.. credentials.py when sharing code. I don't know that this is an ideal solution, just something that I've taken as habit. On Friday, November 30, 2018 at 11:51:44 AM UTC-6, Sand

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Bill Freeman
You should be keeping settings.py secure. There's other stuff that shouldn't be public. That's why the django project directories are not included in the pages that the front end web server is allowed to serve, among other things. Security is tough. There's no magic answer. On Fri, Nov 30, 2018

How to hide the password of postgresql in settings.py

2018-11-30 Thread Sandip Nath
I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? -- You received this message because you are subscribed to the Google Groups "Dj