initial
This commit is contained in:
commit
2c2812c47c
279 changed files with 17212 additions and 0 deletions
9
apps/forum/middleware.py
Normal file
9
apps/forum/middleware.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
#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
|
||||
|
||||
class LastLoginMiddleware(object):
|
||||
def process_request(self, request):
|
||||
cache.set(str(request.user.id), True, settings.FORUM_USER_ONLINE_TIMEOUT)
|
Reference in a new issue