django:如何配置芹菜redis

时间:2014-09-27 16:54:58

标签: django redis celery

根据芹菜使用redis docs

配置

Configuration is easy, just configure the location of your Redis database:

BROKER_URL = 'redis://localhost:6379/0'

Where the URL is in the format of:

redis://:password@hostname:port/db_number

all fields after the scheme are optional, and will default to localhost on port 6379, using database 0.

我在哪里可以找到此配置文件。这是在我的项目的setting.py中。

0 个答案:

没有答案