我想通過定義視圖和URL如下,但我收到錯誤,如標題中所述的錯誤,以實現簡單的基於配置文件圖像對象的刪除視圖。未找到''參數'()'和關鍵字參數'{'pk':23}''的'delete_profileimage'。 0模式嘗試:[]
在https://gist.github.com/webbyfox/e57e81ae4b9e6719e633676c1c19ff1a
項目url.py全回溯在https://gist.github.com/webbyfox/5649570f60ae98be86206c033a5c7c75
應用url.py https://gist.github.com/webbyfox/212636bacca253f4352fe446fc4eb6eb
class ProfileImageDeleteView(LoginRequiredMixin, DeleteView):
model = ProfileImage
success_url = 'matrimonial/~imageupload/'
張貼您的主要urls.py – itzMEonTV