[Django]-What is the flow of django website…. what views, templates, models and forms does actually

4👍

There is a lot to tell but to cut everything in short,

Views – It contains your logic function, all the main function goes to views.py of the app

Models – It contains the schema of your database that is the overall structuring of the database.

Template – It contains your frontend content, basically the html part that we are all familiar with.

Forms – Now Forms is something that can be done using django or without it also but django_form make thing easy so Form have elements like fields as usual which is associated with a Model. Django Form make thing ridiculously easy and fast.

enter image description here

Hope this helps!

Leave a comment