【发布时间】:2014-01-07 12:57:01
【问题描述】:
伙计们,这很简单,我在更新 CRUD 中的项目时使用 HttpResponseRedirect,
return HttpResponseRedirect('catalog/'+category.slugc+'/product/')
我得到的网址是:localhost:8000/catalog/product/1/catalog/snorkels/product/
我需要得到:localhost:8000/catalog/snorkels/product/
谁能帮帮我!
【问题讨论】:
标签: python django python-2.7 django-forms django-views