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
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
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
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
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
5 matches
Mail list logo