Update CACHE controls to work better with django-configurations

This commit is contained in:
Daniel Greenfeld 2013-09-22 14:42:56 +02:00
parent 14cec10f27
commit b57a0aec0a
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ Deployment
* heroku config:add DJANGO_AWS_ACCESS_KEY_ID=YOUR_ID
* heroku config:add DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
* heroku config:add DJANGO_AWS_STORAGE_BUCKET_NAME=BUCKET
* heroku config:add CACHE_URL=memcached://127.0.0.1:11211
* git push heroku master
* heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings
* heroku run python {{cookiecutter.repo_name}}/manage.py migrate --settings=config.settings

View File

@ -380,7 +380,7 @@ class Production(Common):
########## CACHING
# Only do this here because thanks to django-pylibmc-sasl and pylibmc memcacheify is painful to install on windows.
CACHES = values.CacheURLValue()
CACHES = values.CacheURLValue("memcached://127.0.0.1:11211")
########## END CACHING
########## Your production stuff: Below this line define 3rd party libary settings