[Django] #12558: The ENGINE setting no longer defaults to dummy if it is not defined

0 views
Skip to first unread message

Django

unread,
Jan 9, 2010, 9:01:59 AM1/9/10
to djang...@holovaty.com, django-...@googlegroups.com
#12558: The ENGINE setting no longer defaults to dummy if it is not defined
------------------------------------------+---------------------------------
Reporter: obeattie | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2-alpha
Keywords: importerror | Stage: Unreviewed
Has_patch: 1 |
------------------------------------------+---------------------------------
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.

--
Ticket URL: <http://code.djangoproject.com/ticket/12558>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 9, 2010, 9:04:11 AM1/9/10
to djang...@holovaty.com, django-...@googlegroups.com
#12558: The ENGINE setting no longer defaults to dummy if it is not defined
---------------------------------------------------+------------------------
Reporter: obeattie | Owner: nobody
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.2-alpha
Resolution: | Keywords: importerror
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by obeattie):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* milestone: => 1.2

--
Ticket URL: <http://code.djangoproject.com/ticket/12558#comment:1>

Django

unread,
Jan 10, 2010, 9:40:15 AM1/10/10
to djang...@holovaty.com, django-...@googlegroups.com
#12558: The ENGINE setting no longer defaults to dummy if it is not defined
---------------------------------------------------+------------------------
Reporter: obeattie | Owner: nobody
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.2-alpha
Resolution: | Keywords: importerror
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (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.

--
Ticket URL: <http://code.djangoproject.com/ticket/12558#comment:2>

Django

unread,
Jan 10, 2010, 7:59:31 PM1/10/10
to djang...@holovaty.com, django-...@googlegroups.com
#12558: The ENGINE setting no longer defaults to dummy if it is not defined
---------------------------------------------------+------------------------
Reporter: obeattie | Owner: nobody
Status: closed | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.2-alpha
Resolution: fixed | Keywords: importerror
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by Alex):

* status: new => closed
* resolution: => fixed

Comment:

Fixed in r12204.

--
Ticket URL: <http://code.djangoproject.com/ticket/12558#comment:3>
Reply all
Reply to author
Forward
0 new messages