Get_article and get_author

Hii,

I don’t understand the following two lines. How does it work?
Kindly give me an explanation about the execution of ‘get_article’ and ‘get_auther’.
in author.html
in article.html

If you check the for loop used in both these files , you will see that we are displaying the information about the author as well as articles in a listed form respectively , and using an anchor tag along with it .
get_author / get_article are the names given to the urls/path in the urls.py file .
So whenever these names are used they will load the corresponding url address .
Also we are mentioning the article/author id in the url template i.e, author.id/article.id along with the name of the url.
When these hyperlinks are clicked it will get redirected to the path named ‘get_author’/‘get_article’ , you will notice that in these path we have mentioned ‘/int:pk’ after article and author - this is basically where the article_id and author_id will go , which will in load the information about the author / article.