Kaydet (Commit) 31bcb102 authored tarafından Tim Graham's avatar Tim Graham

Fixed #19775 - Clarified requirements of the "default" database.

Thanks monkut for the report and wsmith323 for the patch.
üst 799be90f
...@@ -21,8 +21,10 @@ documentation. ...@@ -21,8 +21,10 @@ documentation.
Databases can have any alias you choose. However, the alias Databases can have any alias you choose. However, the alias
``default`` has special significance. Django uses the database with ``default`` has special significance. Django uses the database with
the alias of ``default`` when no other database has been selected. If the alias of ``default`` when no other database has been selected. If
you don't have a ``default`` database, you need to be careful to the concept of a ``default`` database doesn't make sense in the context
always specify the database that you want to use. of your project, you need to be careful to always specify the database
that you want to use. Django requires that a ``default`` database entry
be defined, but the parameters can be left blank if it will not be used.
The following is an example ``settings.py`` snippet defining two The following is an example ``settings.py`` snippet defining two
databases -- a default PostgreSQL database and a MySQL database called databases -- a default PostgreSQL database and a MySQL database called
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment