0% found this document useful (0 votes)
2 views

django qna

Django is a high-level Python web framework that follows the MVC architectural pattern, facilitating efficient web application development. Key features include an ORM for database abstraction, a built-in admin interface, a templating engine, and robust security measures. The MVT architecture consists of models for data management, views for handling requests and responses, and templates for rendering data, while middleware serves as a component for modifying requests and responses.

Uploaded by

Mohammad Afzal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

django qna

Django is a high-level Python web framework that follows the MVC architectural pattern, facilitating efficient web application development. Key features include an ORM for database abstraction, a built-in admin interface, a templating engine, and robust security measures. The MVT architecture consists of models for data management, views for handling requests and responses, and templates for rendering data, while middleware serves as a component for modifying requests and responses.

Uploaded by

Mohammad Afzal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What is django?

django is high level python webframework used to build web application efficiently.
It follows mvc architectural pattern.

model: it represent database schema.

view: it represents user interface the view which are directly interact with users.

2. What are main features of django? what is ORM?


The several features of django
ORM(Object relational mapping): django comes with an orm that provided an
abstraction layer over database making it easier to work with database.

admin interface: django provides a jbuiltin admin interface that can be used to
manage applications data.

templating engine: django has a builtin templating engine that allows developer to
create dynamic webpages using a combination of html css and dynamic interface.

url routing:
django has a powerful url routing system that allow developers to map urls to
views.

security:
django has built-in security featurers such as protection against csrf(cross
dashsite request forgery) attacks.

scaleability:
it hancdle thenlarge number of request without compromising the performance.

django administration:

3. Explain mvt architecture?


django model view template architecture is one of the most popular
techniques/stratagy among the developers

model- model is responsible for managing the data busy-ness logic of the
application. it is where the data is stored and the rules for accssing and
manipulating the data are defined

view- the view is responsible for rendering handling request and returing response
it is intrmediate between user and models.
In django the view is often implimented as a python function that takes a request
as input and return a response .

Template- it is responsible for rendering the data in a format that can be display
to the users it consist of static files like html, css and js.

ORM- In django orm provides a high level abstraction layer that allows developers
to interact with database usign python code without having right sql query
directly.

4. Explain role of middleware in django?


the middleware is a component in django that sits between and the view it is used
tom perform the various task such as modifying the request or response, caching,
authentication and security.

5. What is the difference between django and flask?


>django both are popular frameworks that are used to built web application with
some similarities as well as some deiifences

>design method/phylosophy
django is a high level web framework that is uses to desgin web application quickly
and efficiently
f. flask is a micro web framewor that is resignd to be lightweight nd flexible web
pages, giving devlopers more control over the application structure

scalability- django is a better suited for larger and more complex web application
that requires a lot of bultin features such as
@authentication
@templating engine
@admin panel
@middleware component
@templates
@orm, etc...

flask is a better suited for smaller sapplication that not require as much builtin
functionality

6. Explain the concept of migration?


django migration is a builtin functionality in django that allow developers manage
and apply changes to the models (database schema) of the web admin interface.

7. How can you deploy a django project?


Deploying a django project inolves several steps including preparing the
application for deployment, choosing a hosting platform, configure the servers and
deploying the codes and the most important part the best use of seo applied.

You might also like