1👍
The article_no
arg does not magically find its way into the function call via the POST submit. You need to provide it to the url
tag:
{% url 'blog:edit_article' item.no %}
This assumes, of course, that you have a url pattern with an appropriate named group associated with this view/view name.
0👍
If You are talking about this function, it does recieve more than one Arg, it recieves the No you are talking about, and the request object
def edit_article(request, article_no):
...
0👍
If your view needs arguments you must give the arguments in the url templatetag, like this :
{% url ‘accounts:detail_account’ username = username %}
Source:stackexchange.com