really removed the need for pylibmc this time

This commit is contained in:
Jonas Obrist 2012-08-18 03:14:38 +02:00
parent 692e3e17fd
commit f11032202f
3 changed files with 11 additions and 4 deletions

View file

@ -91,9 +91,16 @@ assert 'GITHUB_APP_SECRET' in os.environ, "Set GITHUB_APP_SECRET in your .env fi
GITHUB_APP_ID = os.environ['GITHUB_APP_ID']
GITHUB_API_SECRET = os.environ['GITHUB_APP_SECRET']
from memcacheify import memcacheify
CACHES = memcacheify()
try:
from memcacheify import memcacheify
CACHES = memcacheify()
except ImportError:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'not-so-unique-snowflake',
}
}
import dj_database_url