extend cookie age if its still used

This commit is contained in:
j 2015-06-30 20:02:09 +02:00
commit 5e6b054896
2 changed files with 18 additions and 0 deletions

View file

@ -87,6 +87,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'ox.django.middleware.ExceptionMiddleware',
'ox.django.middleware.ChromeFrameMiddleware',
'user.middleware.UpdateSession',
)
ROOT_URLCONF = 'urls'
@ -205,6 +206,9 @@ MEDIA_PREFIX=''
SESSION_COOKIE_AGE=60*24*60*60
# Extend cookie age if session is older
SESSION_UPDATE=24*60*60
SCRIPT_ROOT = normpath(join(PROJECT_ROOT, '..', 'scripts'))
#change script to customize
ITEM_POSTER = join(SCRIPT_ROOT, 'poster.py')