really removed the need for pylibmc this time
This commit is contained in:
parent
692e3e17fd
commit
f11032202f
3 changed files with 11 additions and 4 deletions
|
@ -2,7 +2,6 @@ Django==1.4.1
|
||||||
South==0.7.6
|
South==0.7.6
|
||||||
argparse==1.2.1
|
argparse==1.2.1
|
||||||
dj-database-url==0.2.1
|
dj-database-url==0.2.1
|
||||||
django-heroku-memcacheify==0.3
|
|
||||||
django-social-auth==0.7.4
|
django-social-auth==0.7.4
|
||||||
httplib2==0.7.4
|
httplib2==0.7.4
|
||||||
oauth2==1.5.211
|
oauth2==1.5.211
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
django-pylibmc-sasl==0.2.4
|
django-pylibmc-sasl==0.2.4
|
||||||
gunicorn==0.14.6
|
gunicorn==0.14.6
|
||||||
|
django-heroku-memcacheify==0.3
|
||||||
pylibmc==1.2.3
|
pylibmc==1.2.3
|
||||||
-r localrequirements.txt
|
-r localrequirements.txt
|
||||||
|
|
13
settings.py
13
settings.py
|
@ -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_APP_ID = os.environ['GITHUB_APP_ID']
|
||||||
GITHUB_API_SECRET = os.environ['GITHUB_APP_SECRET']
|
GITHUB_API_SECRET = os.environ['GITHUB_APP_SECRET']
|
||||||
|
|
||||||
from memcacheify import memcacheify
|
try:
|
||||||
|
from memcacheify import memcacheify
|
||||||
CACHES = memcacheify()
|
CACHES = memcacheify()
|
||||||
|
except ImportError:
|
||||||
|
CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
|
'LOCATION': 'not-so-unique-snowflake',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue