Browse files

Allow configuring the memcached host.

  • Loading branch information...
1 parent b146fea commit e9af771893c9b8f902155005b9a3005e9beade1f @coderanger coderanger committed Oct 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_www/common_settings.py
View
2 django_www/common_settings.py
@@ -30,7 +30,7 @@
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- 'LOCATION': '127.0.0.1:11211',
+ 'LOCATION': SECRETS.get('memcached_host', '127.0.0.1:11211'),
} if PRODUCTION else {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache'
},

0 comments on commit e9af771

Please sign in to comment.