Here is class 12 computer science Unit 15 solutions for Sumita Arora back exercise assignment. Below includes both textual and video solutions wherever required. View all the answers in assignment for chapter 15 and for all chapters here.Sumita Arora Solutions for all lessons here.
A web framework (WF) is a software framework that is designed to support the web development or the website development which includes web services, web resources, and web APIs. Web frameworks provide a standard way to build and deploy web applications on the World Wide Web.
A library is just the collection of modules having linear mode of operation, and they invoke on call that is one way control.While in framework it is the higher order and complex designing and also include robust nature. It follows inversion of control that user call the framework and it also communicates that calls the user for the features.
A Django project refers to the whole working application while the Django app is the submodule or the working skeleton function.
To register the app to main project in Django, open the setting.py and append the name of the apps in the list of the “INSTALLED APP“. This will add the app to the main frame of the project in Django.
An HTTP the client send the HTTP request in the form of the request in the proper design format to retrieve the acknowledgment of the request from the server side.
Types of HTTP requests: GET is used to request data from a specified resource. POST is used to send data to a server to create/update a resource.
GET Request is used to request data from a specified server from teh client side wheras POST Request is used to send data to a server to create/update a resource from the client side..
Virtual environment is an isolated working space from the working environment that can be on external environment but mainly in the main working system.It a space where we’re having inly the specific dependencies according to the project need.
mysite/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py Under this structure of project the under mention command is to start the server.
$ python manage.py runserver
The file is called manage.py, where it is used to provide administrative working support for the project such as creating app and running web server and also some tasks like this.
Django follows the MVT or Model View Template architecture which is based on the MVC or Model View Controller architecture.
MVT is Model-View_template working architecture of Django.
Model: Model is going to act as the interface of your data. It is responsible for maintaining data. Such as Mysql, mongoDB etc.View: The View is the user interface i.e. what you see in your browser when you render a website. It is HTML/CSS/Javascript part of web application.Template: A template consists of static parts of the desired HTML output as well as some special syntax describing how dynamic content is tackled.
Django’s template layer renders the information to be presented to the user in a designer-friendly format. Using templates, you can generate HTML dynamically and all the dynamic generated data on the interface. That is how template interact in this zone.
View is simply a python function that takes a web request and returns a web response. This response can be the HTML contents of a web page, or a redirect, or an XML document, or an image, etc.This is important as it links the content of web page to the model of the project in Django.
URL Routing is the process of linking the URL’s and displaying the content or the templates of the projects in Django.Its structure is defined in the urls.py by the transition of linking URL patterns.
Clear Doubts with Computer TutorIn case you’re facing problems in understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or absolutely anything around computer science, feel free to join CTs learner-teacher community: students.computertutor.in
You cannot copy content of this page