For example, Let's say you are building a web application which consists of user profiles and each user is given a unique id. A Dynamic URL is a URL which consists of one or more variable part which influences the output of the page. ![]() Most application these days consists of Dynamic URLs. Routes we have created so far were static. If you try to visit a URL which isn't mapped to a view function you will get a 404 Not Found error. In this case, whenever a request comes to /contact/ or /feedback/, the feedback() function will be invoked to complete the request. ( '/contact/' ) ( '/feedback/' ) def feedback (): return 'Feedback Page'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |