* stage: Unreviewed => Accepted
Comment:
> While you are maintaining both old and new config variations, all will
continue to work for you.
>
> If you remove the old, no longer documented, settings of `HOST` `PORT`
`NAME` `USER` then your setup will work for `runserver` but not `test`
> The pg docs [https://docs.djangoproject.com/en/4.0/ref/databases
/#postgresql-notes-1] only documents the new method of specifying
`service` and `passfile` in the `OPTIONS` ...
Using `['OPTIONS']['service']` and `['OPTIONS']['passfile']` is not a
"new" or only supported way for the `DATABASES` settings. It's a
PostgreSQL-specific option that you may use that's why it's documented
only in the ''"PostgreSQL notes"''. Using `HOST`, `PORT`, `NAME`, `USER`,
and `PASSWORD` is still fully supported for PostgreSQL, see
[https://docs.djangoproject.com/en/4.0/ref/settings/#databases docs].
> ... this documented setup **does not support running tests** with
postgresql databases.
`NAME` is used in many places for test setup, including cloning a test
database, that's why it doesn't work with only `service` specified.
--
Ticket URL: <https://code.djangoproject.com/ticket/33685#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.