-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double saving when using django_debug_toolbar #318
Comments
@hisie Was the profiling panel enabled? |
Sorry kkumler i have just deactivate it. I will send you a copy of the settings.py when i can. |
Yes, i'm experimenting the same behaviour. The profiler module executes the page two times (and when submitting forms that produces 2 subsequent form submit). |
Strange problem here -- when I use the profiler module -- all sql requests and templates in other debug panels are doubled. |
any news on this problem ? |
#348 is probably a duplicate. |
Oops. |
I have just installed the debug toolbar and i have see that when i activate it and i do a method save from a ModelForm it execute two times the create query, while wihtout the debug toolbar is working fine.
I am using:
Python 2.7.2
Django 1.4.1
Debug toolbar 0.9.4
Registration 0.8
This is the debug_toolbar sqk panel:
Query Timeline Time (ms) Acción
+
SELECT ••• FROM
django_session
WHERE (django_session
.session_key
= 'f3ade7ddf8f20fd0485e53fa9569231a' ANDdjango_session
.expire_date
> '2012-08-30 20:12:22' )28,7429378531%
0,81 Sel Expl
+
SELECT ••• FROM
auth_user
WHEREauth_user
.id
= 120,3389830508%
0,58 Sel Expl
+
INSERT INTO
evento_evento
(nombre
,descripcion
,lugar
,fecha_inicio
,fecha_fin
,numero_dias
,tematica_id
,privacidad
,creador_id
,fecha_creaccion
,fecha_modificacion
,fecha_en_votacion
,lugar_en_votacion
) VALUES ('Prueba github', '', '', NULL, NULL, NULL, NULL, 'semi', 1, '2012-08-30', '2012-08-30', 0, 0)26,3771186441%
0,75
+
INSERT INTO
evento_evento
(nombre
,descripcion
,lugar
,fecha_inicio
,fecha_fin
,numero_dias
,tematica_id
,privacidad
,creador_id
,fecha_creaccion
,fecha_modificacion
,fecha_en_votacion
,lugar_en_votacion
) VALUES ('Prueba github', '', '', NULL, NULL, NULL, NULL, 'semi', 1, '2012-08-30', '2012-08-30', 0, 0)24,540960452%
0,70
And this is the progiling part:
Call CumTime Per TotTime Per Count
0,034 0,034 0,000 0,000 1
0,009 0,009 0,000 0,000 1
0,009 0,009 0,000 0,000 1
0,009 0,009 0,000 0,000 1
0,009 0,009 0,000 0,000 1
0,007 0,007 0,000 0,000 1
0,007 0,007 0,000 0,000 1
0,007 0,007 0,000 0,000 1
0,007 0,007 0,000 0,000 1
0,015 0,005 0,000 0,000 3
/home/hisie/workspace-python/preparala/../django14/lib/python2.7/posixpath.py in realpath(355)
0,014 0,000 0,001 0,000 84
0,007 0,002 0,000 0,000 3
/debug_toolbar/utils/init.py in getframeinfo(101)
0,007 0,000 0,001 0,000 84
The text was updated successfully, but these errors were encountered: