亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Celery-Progress-Bar 在 Django 中不起作用

Celery-Progress-Bar 在 Django 中不起作用

慕沐林林 2021-07-09 17:15:02
我正在嘗試使用 celery-progress 模塊向用戶顯示任務的進度,因為完成任務需要很多時間。但是,按照https://github.com/czue/celery-progress上的說明進行操作后,我在前端看到以下錯誤:-NoReverseMatch at /netadc/arista/views/getFabListArista/TRCW/Reverse for 'task_status' with arguments '('',)' not found. 1 pattern(s) tried: [u'celery_progress/(?P<task_id>[\\w-]+)/$']Request Method: GETRequest URL:    http://x.x.x.x/netadc/arista/views/getFabListArista/TRCW/Django Version: 1.11Exception Type: NoReverseMatchException Value:Reverse for 'task_status' with arguments '('',)' not found. 1 pattern(s) tried: [u'celery_progress/(?P<task_id>[\\w-]+)/$']前端的 URL 模式var progressUrl = "{% url 'celery_progress:task_status' task_id %}";不起作用。當我將其更改為時,var progressUrl = "{% url 'celery_progress:task_status' 'task_id' %}";我沒有收到錯誤消息,但沒有任何任務正在運行。任何有關 django/python 的專家,請幫忙。
查看完整描述

2 回答

  • 2 回答
  • 0 關注
  • 362 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號