django+celery使用sqlalchemy做brokers
# sqlite (filename)
BROKER_URL = 'sqla+sqlite:///celerydb.sqlite'
# mysql
BROKER_URL = 'sqla+mysql://scott:tiger@localhost/foo'
# postgresql
BROKER_URL = 'sqla+postgresql://scott:tiger@localhost/mydatabase'
# oracle
BROKER_URL = 'sqla+oracle://scott:tiger@127.0.0.1:1521/sidname'
参考:
http s:// docs. cele ryq.dev/en/3.1/getting-started/brokers/sqlalchemy.html
sqlalchemy不要用{BANNED}最佳新的,使用1.X版本
pip install SQLAlchemy==1.4.42
阅读(302) | 评论(0) | 转发(0) |