0 votes
in Data Handling by
What are ‘views’?

1 Answer

0 votes
by
Django views serve the purpose of encapsulation. They encapsulate the logic liable for processing a user’s request and for returning

the response back to the user. Views in Django either return an HttpResponse or raise an exception such as Http404. HttpResponse contains the objects that consist of the content that is to be rendered to the user. Views can also be used to perform tasks such as read records from the database, delegate to the templates, generate a PDF file, etc.

Course Curriculum

Python Django Training and Certification

Instructor-led Live SessionsReal-life Case StudiesAssignmentsLifetime Access

Related questions

0 votes
asked Apr 3, 2020 in Data Handling by amita rallin
0 votes
asked Apr 3, 2020 in Data Handling by amita rallin
...