Opened 8 years ago
Closed 8 years ago
#26955 closed Bug (needsinfo)
Multi-db example : default database config can not be an empty dict
Reported by: | ldng | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Multi-db example maybe obsolete as it advises to leave "default entry intentionally left empty" [1], yet whe you do so, you'll get the following error :
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
It is cohérente with the basic setup [2] : "The DATABASES setting must configure a default database; any number of additional databases may also be specified."
[1] https://docs.djangoproject.com/en/1.10/topics/db/multi-db/#defining-your-databases
[2] https://docs.djangoproject.com/en/1.9/ref/settings/#databases
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Could you please give steps to reproduce that? Have you setup database routers so that queries aren't sent to the
'default'
database?