问答详情
源自:4-1 Django 中配置使用 Celery

window 下 Django2.0 + django-celery 3.1 运行出错

启动Django时报以下错误:

 File "D:\env\venv\lib\site-packages\djcelery\models.py", line 16, in <module>

    from . import managers

  File "D:\env\venv\lib\site-packages\djcelery\managers.py", line 102, in <module>

    class ResultManager(ExtendedManager):

  File "D:\env\venv\lib\site-packages\djcelery\managers.py", line 108, in ResultManager

    @transaction.commit_manually

AttributeError: module 'django.db.transaction' has no attribute 'commit_manually'


提问者:Jockfi 2019-01-22 20:37

个回答

  • weixin_慕无忌4045370
    2019-06-08 12:48:45

    具体怎么解决我也不知道,但是可以换一下环境,比如djcelery,celery,python,django,redis这些都是有关系的。