![]() ![]() Otherwise, the model passes the negative result to the Views. If the user's data matches, it sends the related data (profile name, image, etc.) to the Views. Then the Model verifies the data provided by the user in the connected database. Then the response is sent from a server to the browser.Īfter then, you'll enter the credentials in Template, and the data sent back to the View to rectify the request, and then data is presented in the Model. It happens because View will process the request and send it to the login page URL. While logging into Django based website, you open the login page. Then it again passes to the browser via Templates.įor your clear understanding, let's take a real-life example: After that, a detailed response is sent back to View to check the response and transmit it as an HTTP response or desired user format. If the website receives the request, it is transmitted from browser to server to manage the view file using a template.Īfter sending the correct URL request, the app logic and Model initiate the right response to the presented request. Django uses request and response objects to communicate between the client and server. The below diagram depicts the working cycle of Django MVT architecture:įrom the diagram, you'll notice Template is on the Client side, and both the Model and View are on the Server side. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |