Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#12558 closed (fixed)

The ENGINE setting no longer defaults to dummy if it is not defined

Reported by: obeattie 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:

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 obeattie 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by obeattie

comment:1 Changed 5 years ago by obeattie

  • milestone set to 1.2
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 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 5 years ago by Alex

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r12204.

comment:4 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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