Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #19377 - Emphasized database host link in tutorial

  • Loading branch information...
commit 0eed8ece320a8a0334c78abc43c82fdb9f1f9827 1 parent 7e97f4f
Tim Graham authored
4  docs/intro/tutorial01.txt
@@ -220,8 +220,8 @@ your database connection settings.
220 220
   SQLite).
221 221
 
222 222
 * :setting:`HOST` -- The host your database is on. Leave this as
223  
-  an empty string if your database server is on the same physical
224  
-  machine (not used for SQLite).
  223
+  an empty string (or possibly ``127.0.0.1``) if your database server is on the
  224
+  same physical machine (not used for SQLite). See :setting:`HOST` for details.
225 225
 
226 226
 If you're new to databases, we recommend simply using SQLite by setting
227 227
 :setting:`ENGINE` to ``'django.db.backends.sqlite3'`` and :setting:`NAME` to
8  docs/ref/databases.txt
@@ -34,13 +34,9 @@ aggregate with a database backend that falls within the affected release range.
34 34
 .. _Release 8.2.5: http://www.postgresql.org/docs/devel/static/release-8-2-5.html
35 35
 
36 36
 PostgreSQL connection settings
37  
-------------------------------
  37
+-------------------------------
38 38
 
39  
-By default (empty :setting:`HOST`), the connection to the database is done
40  
-through UNIX domain sockets ('local' lines in pg_hba.conf). If you want to
41  
-connect through TCP sockets, set :setting:`HOST` to 'localhost' or '127.0.0.1'
42  
-('host' lines in pg_hba.conf). On Windows, you should always define
43  
-:setting:`HOST`, as UNIX domain sockets are not available.
  39
+See :setting:`HOST` for details.
44 40
 
45 41
 Optimizing PostgreSQL's configuration
46 42
 -------------------------------------
10  docs/ref/settings.txt
@@ -431,10 +431,12 @@ MySQL will connect via a Unix socket to the specified socket. For example::
431 431
 If you're using MySQL and this value *doesn't* start with a forward slash, then
432 432
 this value is assumed to be the host.
433 433
 
434  
-If you're using PostgreSQL, an empty string means to use a Unix domain socket
435  
-for the connection, rather than a network connection to localhost. If you
436  
-explicitly need to use a TCP/IP connection on the local machine with
437  
-PostgreSQL, specify ``localhost`` here.
  434
+If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection
  435
+to the database is done through UNIX domain sockets ('local' lines in
  436
+``pg_hba.conf``). If you want to connect through TCP sockets, set
  437
+:setting:`HOST` to 'localhost' or '127.0.0.1' ('host' lines in ``pg_hba.conf``).
  438
+On Windows, you should always define :setting:`HOST`, as UNIX domain sockets
  439
+are not available.
438 440
 
439 441
 .. setting:: NAME
440 442
 

0 notes on commit 0eed8ec

Please sign in to comment.
Something went wrong with that request. Please try again.