Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#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: UI/UX:


If the ENGINE setting is not defined in a project's 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)

db.diff (636 bytes) - added by Oliver Beattie 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Oliver Beattie

Attachment: db.diff added

comment:1 Changed 8 years ago by Oliver Beattie

milestone: 1.2

comment:2 Changed 8 years ago by anonymous

+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.

comment:3 Changed 8 years ago by Alex Gaynor

Resolution: fixed
Status: newclosed

Fixed in r12204.

comment:4 Changed 6 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top