return HttpResponse(f'THis is the order which its id is {order_id}.')
When redirected to the next View rhe error(Reverse for ‘add_product_to_order’ with keyword arguments ‘{‘args’: (28,)}’ not found. 1 pattern(s) tried: [‘store/add_product_to_order/(?P<order_id>[^/]+)/add\Z’]) raised but if i type in the search bar '127.0.0.1.8000/store/add_product_to_order/28/add the error not diplayed and display the second view url
When posting code here, please enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted, which is critical with Python.
(Note, you don’t need to repost your code as another message, you can edit your previous post to include the ``` before and after that code.)
This is not the proper usage of the redirect function. See the docs at redirect, particularly example #2.