Problem with sessions

2010-12-21 Thread Antoni Aloy
Hello! We're running an application under gunicorn that stores the session a postgresql database (it saves > 2 Mb info so memcached is not an option) and sometimes it's not able to save the sessions. We have added logs in the session and in the database and we see that sometimes the session middle

Problem with sessions

2007-10-02 Thread Antoni Aloy
Hello! I'm working with the latest svn code and I have found that the db backend to store the session does not work anymore. It works if I configure the backend as cache and the caché itself as some kind of memory caché, but if fails on the other options. I have opened the ticket #5667 but it w

Re: problem with sessions docs?

2005-11-12 Thread Bryan Murdock
On 11/12/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Hey Bryan, > > This technically isn't an error in the docs; it's just a bit > misleading. The "user" in that example wasn't intended to be the user > from the authentication framework -- it's just some generic concept of > "user." > > I've

Re: problem with sessions docs?

2005-11-12 Thread Adrian Holovaty
On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > The example code for logging a user in here: > > http://www.djangoproject.com/documentation/sessions/ > [...] > It doesn't work for me. I googled and found some code here: > [...] > Is this an error in the docs? Maybe I need to svn up? Hey

problem with sessions docs?

2005-11-12 Thread Bryan Murdock
The example code for logging a user in here: http://www.djangoproject.com/documentation/sessions/ is this: def login(request): u = users.get_object(username__exact=request.POST['username']) if u.check_password(request.POST['password']): request.session['user_id'] = u.id