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, Sandip Nath wrote:
>
> 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 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d1c3851-5888-4d2f-8b8a-7ed05a88a379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to