得到错误Reverse for 'view_part' with arguments '()' and keyword arguments '{'part_id': u'54'}' not found
。
URLS.PY
url(r'^(\d+)/(\d+)/convert/$', 'store.views.changetool', name = "convert"),
url(r'^(\d+)/view_part/$','store.views.view_part',name="view_part"),
意见.PY ( changetool
)
def changetool (request, id, unipart=None):
part = Part.objects.get(id=id)
file = str (part.content)
newfile = FormatConversion.ConvertToNew(file)
return redirect('view_part', part_id = unipart)
意见.PY ( view_part
)
def view_part(request, part_id, newfile = None):
...