Django

Code

Ticket #3227 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: anonymous Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Change History

02/01/07 16:13:09 changed by Michael Radziej <mir@noris.de>

  • 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 ;-)

05/27/07 06:33:20 changed 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.

05/27/07 06:33:57 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #3227 (settings.py for localhost should specify localhost for postgresql (at least in my case))




Change Properties
Action