Opened 18 years ago

Closed 18 years ago

#3227 closed defect (fixed)

settings.py for localhost should specify localhost for postgresql (at least in my case)

Reported by: anonymous Owned by: Jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Documentation within file says just to leave it blank if you use a localhost. I found that I had to put in the term localhost. This may depend on your postgresql installation. I'm running 8.1.0.

Let me know if you need some copies of my postgresql config files.

Change History (3)

comment:1 by Michael Radziej <mir@…>, 18 years ago

Triage Stage: UnreviewedAccepted

You're right: The comment in the default settings.py *is* misleading, because an empty host means that postgresql is accessed over a unix domain socket, which is something completely different then accessing it over IP at 'localhost'. But for mysql, the comment is correct, IIRC.

If anybody has a good idea for what words to use, please add it to the ticket ;-)

comment:2 by Malcolm Tredinnick, 18 years ago

Rather than changing the comment in settings.py, which is accurate as far as it goes -- it does connect to the local host, we just don't specify how -- and is only intended to be a quick reminder, I've updated settings.txt. That is the definitive place for explanations.

comment:3 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [5361]) Fixed #3227 -- Clarified DATABASE_HOST semantics for PostgreSQL.

Note: See TracTickets for help on using tickets.
Back to Top