Misleading error when NAME omitted for Postgres DB
|Reported by:||Kristian Glass <djangoproject@…>||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 NAME in 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
Change History (2)
comment:1 Changed 20 months ago by claudep
- Easy pickings set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted