在Heroku为Django提供友好的Redis
django-heroku-redisif的Python项目详细描述
在heroku上配置django项目以使用redis的用户友好方法。
灵感来自Randall Degges的作品。
用法
将此代码放入项目的设置中。py:
from redisify import redisify CACHES = redisify(default='redis://localhost')
完整的文档可以在Read the Docs上找到。
安装
要安装最新版本的django heroku redisify:
$ pip install django-heroku-redisify
或者,如果您必须这样做:
$ easy_install django-heroku-redisify
要安装最新的开发版本:
$ git clone git@github.com:dirn/django-heroku-redisify.git $ cd django-heroku-redisify $ python setup.py install
更改日志
- 0.2.1条 -根据需要添加django redis cache和redis。
- 0.2.0条 -此版本不向后兼容 -redisify()现在返回在 环境设置。
- 0.1.0条 -初始版本