Added session cache backend. Added redis. Updated requirements.

This commit is contained in:
Martin Mahner 2013-09-28 12:34:57 +02:00
parent 4ba94ce64e
commit fb20e91a7d
2 changed files with 17 additions and 5 deletions

View file

@ -97,7 +97,6 @@ TEMPLATE_CONTEXT_PROCESSORS += (
)
INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.staticfiles',
'mptt',
'south',
@ -114,6 +113,18 @@ DATABASES = {
}
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
"default": {
"BACKEND": "redis_cache.cache.RedisCache",
"LOCATION": "127.0.0.1:6379:1",
"OPTIONS": {
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
}
}
}
#==============================================================================
# App specific settings
#==============================================================================

View file

@ -1,9 +1,10 @@
django==1.5.2
django==1.5.4
django-mptt==0.6.0
django-redis==3.3
pygments==1.6
south==0.8.2
requests==1.2.3
requests==2.0.0
# Deployment specific
#mysql-python==1.2.4
gunicorn==17.5
gunicorn==18.0
mysql-python==1.2.4