Re: Custom user model backend

2014-05-29 Thread Kelvin Wong
Maybe try putting some logging in your CustomUserModelBackend. Near the top, put in some logging boilerplate: import logging logger = logging.getLogger(__name__) Then in your backend, something like this: class CustomUserModelBackend(ModelBackend): ... def get_user(self, user_id):

Re: Custom user model backend

2014-05-28 Thread Domagoj Kovač
I already know about SESSION_COOKIE_AGE. I set it to be 30 minutes, but the problem is that even if i am doing something system logs me out, and this should not happen. It work properly before i implemented custom auth backend. -- You received this message because you are subscribed to the Goo

Re: Custom user model backend

2014-05-28 Thread Kelvin Wong
In your settings.py you might have to set the SESSION_COOKIE_AGE https://docs.djangoproject.com/en/1.4/topics/http/sessions/#session-cookie-age K On Wednesday, May 28, 2014 5:49:01 AM UTC-7, Domagoj Kovač wrote: > > Hi guys, > > I extended base user model with certain fields. My code is as foll

Custom user model backend

2014-05-28 Thread Domagoj Kovač
Hi guys, I extended base user model with certain fields. My code is as follows: #!/usr/bin/env python > # -*- coding: utf-8 -*- > from django.utils import timezone > from django.conf import settings > from django.contrib.auth.backends import ModelBackend > from django.core.exceptions import Impro