+ 1
How to pass <str:â-> argument to REVERSE in Django?
I want to return(reverse()) the âEDITâ function to the url which is this -> path(â<str:search>â, views.search, name=âsearchâ) I want to pass the âeditâ (str) to the search named url!! How can I do this def edit(request, edit): ... ... context = [ âeditâ: edit ] ... ... return redirect(âsearchâ , ____) <â- argument here
1 RĂ©ponse
+ 2
In django You can not pass parameters with redirect. Your only bet is to pass them as a part of URL.