Django determines whether the requested URL pattern is mentioned in URL.py. whenever a user requests a page. If the regular expression matches, Django will call the view. HttpRequest is passed as a parameter of the view function, and the implementation part is additionally executed.