<s> "<STR_LIT>" <EOL> from __future__ import unicode_literals <EOL> import hashlib <EOL> from django . conf import settings <EOL> DEFAULT_TIMEOUT = <NUM_LIT:12> * <NUM_LIT> * <NUM_LIT> <EOL> CACHE_TIMEOUT = getattr ( settings , '<STR_LIT>' , DEFAULT_TIMEOUT ) <EOL> CACHE_PREFIX = '<STR_LIT>' <EOL> def default_cache_key ( slug , url ) : <EOL> "<STR_LIT>" <EOL> sha = hashlib . sha1 ( '<STR_LIT>' . format ( url , slug ) . encode ( '<STR_LIT:ascii>' ) ) <EOL> return '<STR_LIT>' . format ( CACHE_PREFIX , sha . hexdigest ( ) ) <EOL> CACHE_KEY_FUNCTION = default_cache_key </s>
