Misleading error when NAME omitted for Postgres DB
|Reported by:||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.4|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Minor issue, but if you don't set a
settings.DATABASES for a db with the
postgresql_psycopg2 backend, you get the following error:
You need to specify NAME in your Django settings file.
I've seen this confuse at least two people (resulting in them trying to set
settings.NAME...!) so propose a change to:
You need to specify the database NAME in your Django settings file.
in a similar style to the sqlite3 backend.
Pull request at https://github.com/django/django/pull/196