django qna
django qna
django is high level python webframework used to build web application efficiently.
It follows mvc architectural pattern.
view: it represents user interface the view which are directly interact with users.
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:
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.
>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