Code

Opened 7 years ago

Closed 7 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: UI/UX:

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.

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Michael Radziej <mir@…>

  • Triage Stage changed from Unreviewed to Accepted

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 Changed 7 years ago by mtredinnick

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 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.