#Question about PostgreSQL connection

5 messages · Page 1 of 1 (latest)

oak lagoon
#

Hey, it's me again.

So I'm a bit noob to Django and PostgreSQL, and I was checking the docs for Postgre.

I understand perfectly the content of this section:
https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-DATABASES

However, I don't understand much the latter part of the following, the "PostgreSQL connection settings" part:
https://docs.djangoproject.com/en/5.0/ref/databases/#postgresql-notes

I know what is psycopg2 and I have used it before, I'm OK with that part.
But I have no idea what is a "connection service file" nor a "password file", and what are their uses.
I checked PostgreSQL docs already, but it assumes I already know what is this for.
I don't even know how to create those files. This stuff isn't necessary at all right?

gaunt swift
#

correct, I don't use them

#

they're conveniences to save you from having to type a username & password, or to store them in some other location

oak lagoon
gaunt swift