Opened 15 years ago

Closed 15 years ago

Last modified 13 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: 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)

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

Download all attachments as: .zip

Change History (5)

by Oliver Beattie, 15 years ago

Attachment: db.diff added

comment:1 by Oliver Beattie, 15 years ago

milestone: 1.2

comment:2 by anonymous, 15 years ago

+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 by Alex Gaynor, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r12204.

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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