How to start django session on demand?

when using django middleware, for every new visitor, a new session record or session file is created. this is fine except for websites where a large traffic part do not need session (exemple : a blog that is seen by many but written by only one).Is it possible to have the session middleware activated only for some urls so many I/Os will be saved ?


This is actually not true. Sessions are lazily created, so only if data is put in the session a new record is created. Have a look here:

Need Your Help

What event will fire if the textarea not being focus?

javascript html javascript-events

Is there any event will fire if the textarea is not focus anymore? thank you.

Pass variable to a form - Symfony2

symfony2 doctrine2

I read the others questions on this topic, but my app still doesn't work :(