Code

Opened 4 years ago

Closed 4 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 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by obeattie

comment:1 Changed 4 years ago by obeattie

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

comment:2 Changed 4 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 4 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.