Skip to content
This repository

No SQL for django_session #294

Closed
shultais opened this Issue · 5 comments

3 participants

Никита Шультайс Mikhail Korobov Aymeric Augustin
Никита Шультайс

Debug Toolbar 0.9.4
Django 1.3.1
PostgreSQL 9.1
Sessions in data base.

SQL pane shows all requests, except for the table django_session;

First SQL:
SELECT "userpanel_profile"."user_id", ... FROM "userpanel_profile" WHERE "userpanel_profile"."user_id" = 40004

Second SQL:
SELECT "auth_user"."id", ... FROM "auth_user" WHERE "auth_user"."id" = 40004

Mikhail Korobov
kmike commented

Do you have DebugToolbarMiddleware before SessionMiddleware?

Никита Шультайс

I have DebugToolbarMiddleware after SessionMiddleware.

Mikhail Korobov
kmike commented

I think that's why it doesn't catch SQL produced by SessionMiddleware; try putting it before the SessionMiddleware.

Никита Шультайс

I put DebugToolbarMiddleware before SessionMiddleware, but nothing has changed.

Aymeric Augustin
Owner

I'm positive that the debug toolbar shows the request to the session.

You can even see it on the screenshot I added to the README yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.