diff options
author | kinitrupti | 2015-09-24 18:23:55 +0530 |
---|---|---|
committer | kinitrupti | 2015-09-24 18:23:55 +0530 |
commit | 5b77fdb95f6c3d71dfa1dd5d7ff06cd8bf519c98 (patch) | |
tree | ecd898de068b63504d834bfbbe92be37728e33ea /PythonTBC/settings.py | |
parent | 2c58497010b8a2d505cb4ff976ad742a7773abf9 (diff) | |
download | Python-TBC-Interface-5b77fdb95f6c3d71dfa1dd5d7ff06cd8bf519c98.tar.gz Python-TBC-Interface-5b77fdb95f6c3d71dfa1dd5d7ff06cd8bf519c98.tar.bz2 Python-TBC-Interface-5b77fdb95f6c3d71dfa1dd5d7ff06cd8bf519c98.zip |
Hit-Count
Diffstat (limited to 'PythonTBC/settings.py')
-rw-r--r-- | PythonTBC/settings.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py index 2849625..5ffd4af 100644 --- a/PythonTBC/settings.py +++ b/PythonTBC/settings.py @@ -139,10 +139,14 @@ INSTALLED_APPS = ( 'tbc', 'comments', 'south', + 'hitcount', ) -SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' +# needed for django-hitcount to function properly +SESSION_SAVE_EVERY_REQUEST = True +SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' +SOUTH_MIGRATION_MODULES = {"hitcount": "hitcount.south_migrations"} # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error when DEBUG=False. @@ -171,3 +175,7 @@ LOGGING = { }, } } +HITCOUNT_KEEP_HIT_ACTIVE = { 'minutes': 60 } +HITCOUNT_HITS_PER_IP_LIMIT = 0 #unlimited +HITCOUNT_EXCLUDE_USER_GROUP = ( ) # not used +HITCOUNT_KEEP_HIT_IN_DATABASE = { 'seconds': 10 } |