#12558 closed (fixed)
The ENGINE setting no longer defaults to dummy if it is not defined
| Reported by: | Oliver Beattie | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 1.2-alpha |
| Severity: | Keywords: | importerror | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
If the ENGINE setting is not defined in a project's settings.py file (for instance, if not using Django's ORM), any attempt to import django.db will cause an ImportError due to the new ConnectionHandler trying to import an invalid path. I have attached a patch which hopefully corrects this behaviour.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
+1, just had exactly the same problem - you shouldn't need to define databases if you're not using the ORM. Came up with exactly the same patch, does the trick.