<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> import datetime <EOL> from django . conf import settings <EOL> from appconf import AppConf <EOL> SESSION_IP_KEY = "<STR_LIT>" <EOL> SESSION_LAST_USED_KEY = "<STR_LIT>" <EOL> SESSION_USER_AGENT_KEY = "<STR_LIT>" <EOL> class SessionActivityAppConf ( AppConf ) : <EOL> UPDATE_THROTTLE = datetime . timedelta ( minutes = <NUM_LIT:5> ) <EOL> def configure_update_throttle ( self , value ) : <EOL> if isinstance ( value , int ) : <EOL> value = datetime . timedelta ( seconds = value ) <EOL> return value </s>
