Re: db queries made twice

2013-08-31 Thread Marcin Szamotulski
Thanks, though disabling django_toolbar completely (removing the middleware, and the entry in INSALLED_APPS) did not helped. Regards, Marcin On 04:34 Sat 31 Aug , Tomáš Ehrlich wrote: > Other option is set SHOW_TEMPLATE_CONTEXT to False > in DEBUG_TOOLBAR_CONFIG. > > See

Re: db queries made twice

2013-08-31 Thread Tomáš Ehrlich
Other option is set SHOW_TEMPLATE_CONTEXT to False in DEBUG_TOOLBAR_CONFIG. See https://github.com/django-debug-toolbar/django-debug-toolbar#configuration Dne sobota, 31. srpna 2013 13:24:54 UTC+2 Tomáš Ehrlich napsal(a): > > Hi, > disable Template panel in debug_toolbar and try again. > >

Re: db queries made twice

2013-08-31 Thread Tomas Ehrlich
Hi, disable Template panel in debug_toolbar and try again. Debug toolbar hits database when evaluating template context. Cheers, Tom Dne Sat, 31 Aug 2013 12:09:00 +0100 Marcin Szamotulski napsal(a): > Hello, > > I am using django-1.6.b2 on a localserver (./manage.py

db queries made twice

2013-08-31 Thread Marcin Szamotulski
Hello, I am using django-1.6.b2 on a localserver (./manage.py runserver) and for every request I have the chain of db lookups made twice. For example my log looks something like this (after enabling django.db.backands logger): # HERE VIEW IS CALLED (0.001) SELECT "django_session"."session_key",