mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Added session cache backend. Added redis. Updated requirements.
This commit is contained in:
parent
4ba94ce64e
commit
fb20e91a7d
2 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
#==============================================================================
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue