forum settings in local_settings

This commit is contained in:
alafin 2009-01-17 17:56:19 +02:00
parent 18abcb087a
commit 2e1815aa07
7 changed files with 29 additions and 72 deletions

View file

@ -1,9 +1,7 @@
#from datetime import datetime
#from django.http import HttpResponseRedirect
from django.core.cache import cache
from django.conf import settings
#from django.core.urlresolvers import reverse
from apps.forum import settings as forum_settings
class LastLoginMiddleware(object):
def process_request(self, request):
cache.set(str(request.user.id), True, settings.FORUM_USER_ONLINE_TIMEOUT)
cache.set(str(request.user.id), True, forum_settings.USER_ONLINE_TIMEOUT)