2012/10/9 Stefano Tranquillini <stefano.tranquill...@gmail.com> > ok, > but in this way when the user logs out i've to remove the object from the > request, right? > what if the user closes the browser? > No. The request object lives just for one request from browser. User clicks tries to get certain url in browser, then django creates request object, which you use in view - as first argument. With this middleware you will be able to use request.profile if user has profile. --
Marek Brzóska brzoskama...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.