Re: [Django] #14022: context_processors debug() Fails with no DB Backend

2010-12-04 Thread Django
#14022: context_processors debug() Fails with no DB Backend
-+--
  Reporter:  dvine   | Owner:  nobody   
Status:  closed  | Milestone:   
 Component:  Core framework  |   Version:  1.2  
Resolution:  worksforme  |  Keywords:  sprintdec2010
 Stage:  Unreviewed  | Has_patch:  0
Needs_docs:  0   |   Needs_tests:  0
Needs_better_patch:  0   |  
-+--
Changes (by julien):

  * status:  new => closed
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * keywords:  => sprintdec2010
  * needs_docs:  => 0
  * resolution:  => worksforme

Comment:

 If you do not specify any DATABASE_ settings then the connection is
 set to a django.db.backends.dummy.base.DatabaseWrapper instance, which
 does have a `queries` attribute (an empty list). Therefore no exception is
 raised in this context processor. For that reason (and after discussing
 this with russellm) I'm closing this as worksforme.

 I do not doubt you're having an issue with this, but if you'd like it to
 be addressed you need to provide more information about how to reproduce
 it:

  * What do you mean by "the debug() function fails at"? What exception is
 raised?
  * What do you mean by "if no database backend is defined"? As I said, if
 you do not specify any database settings then it should just work. So what
 are you doing to disable (or not enable) the database backend in your
 project?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #14022: context_processors debug() Fails with no DB Backend

2010-07-29 Thread Django
#14022: context_processors debug() Fails with no DB Backend
+---
 Reporter:  dvine   |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Core framework  | Version:  1.2   
 Keywords:  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 If no database backend is defined the debug() function of
 djnago.core.context_processors fails at:

 {{{
 context_extras['sql_queries'] = connection.queries
 }}}

 because the '!DatabaseWrapper' object has no attribute 'queries'

 This happens in my pip install of Django 1.2.1 on my Linux Server but not
 in my recent trunk checkout on my Windows djago dev server.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.