Fixed #19377 - Emphasized database host link in tutorial

This commit is contained in:
Tim Graham 2012-12-11 16:30:07 -05:00
parent 7e97f4f510
commit 0eed8ece32
3 changed files with 10 additions and 12 deletions

View File

@ -220,8 +220,8 @@ your database connection settings.
SQLite). SQLite).
* :setting:`HOST` -- The host your database is on. Leave this as * :setting:`HOST` -- The host your database is on. Leave this as
an empty string if your database server is on the same physical an empty string (or possibly ``127.0.0.1``) if your database server is on the
machine (not used for SQLite). same physical machine (not used for SQLite). See :setting:`HOST` for details.
If you're new to databases, we recommend simply using SQLite by setting If you're new to databases, we recommend simply using SQLite by setting
:setting:`ENGINE` to ``'django.db.backends.sqlite3'`` and :setting:`NAME` to :setting:`ENGINE` to ``'django.db.backends.sqlite3'`` and :setting:`NAME` to

View File

@ -34,13 +34,9 @@ aggregate with a database backend that falls within the affected release range.
.. _Release 8.2.5: http://www.postgresql.org/docs/devel/static/release-8-2-5.html .. _Release 8.2.5: http://www.postgresql.org/docs/devel/static/release-8-2-5.html
PostgreSQL connection settings PostgreSQL connection settings
------------------------------ -------------------------------
By default (empty :setting:`HOST`), the connection to the database is done See :setting:`HOST` for details.
through UNIX domain sockets ('local' lines in pg_hba.conf). If you want to
connect through TCP sockets, set :setting:`HOST` to 'localhost' or '127.0.0.1'
('host' lines in pg_hba.conf). On Windows, you should always define
:setting:`HOST`, as UNIX domain sockets are not available.
Optimizing PostgreSQL's configuration Optimizing PostgreSQL's configuration
------------------------------------- -------------------------------------

View File

@ -431,10 +431,12 @@ MySQL will connect via a Unix socket to the specified socket. For example::
If you're using MySQL and this value *doesn't* start with a forward slash, then If you're using MySQL and this value *doesn't* start with a forward slash, then
this value is assumed to be the host. this value is assumed to be the host.
If you're using PostgreSQL, an empty string means to use a Unix domain socket If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection
for the connection, rather than a network connection to localhost. If you to the database is done through UNIX domain sockets ('local' lines in
explicitly need to use a TCP/IP connection on the local machine with ``pg_hba.conf``). If you want to connect through TCP sockets, set
PostgreSQL, specify ``localhost`` here. :setting:`HOST` to 'localhost' or '127.0.0.1' ('host' lines in ``pg_hba.conf``).
On Windows, you should always define :setting:`HOST`, as UNIX domain sockets
are not available.
.. setting:: NAME .. setting:: NAME