2.所用工具:nginx1.81,uwsgi,redis4.x,django2.1,celery,mysql5.7
3.描述:
celery处理任务时报错,说没有反向啥的,我感觉有呀,而且上传图片几十k也不大啊
**
报
** raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'order' with no arguments not found. 1 pattern(s) tried: ['user/order/(?P\d+)$']
user中url的配置
和下面答主的一样 (除了我的order/后面还有别的关于页码的参数以外)
user应用下的urls.py配置:
这是你django的问题啊,和celery没关系,url映射视图时少了name参数