Crack Python Interview Part 2
Crack Python Interview Part 2
part 2
Author
Arun Arunisto
About the author
Advantages of django
Rapid development: Django provides many
built-in features and libraries that help in
faster application development.
Scalability: Django's modular design allows
easy scaling of applications.
Security: Django provides several built-in
security features to protect against common
web application vulnerabilities.
ORM (Object-Relational Mapping): Django's
ORM allows developers to interact with the
database using Python objects, making
database operations easier and more
intuitive.
Community and documentation: Django has a
large and active community, which means you
can find plenty of resources and support.
django pattern?
Model-View-Template (MVT): Django
follows a variation of the MVC pattern,
known as Model-View-Template (MVT).
Model represents the data structure and
business logic.
View handles the presentation and user
interface.
Template defines the structure and
layout of the rendered HTML pages.
django Models?
Django models are Python classes that
represent database tables.
They define the structure of the data and
include fields for storing different types of
information.
Models define relationships between
different tables, enforce constraints, and
provide methods for querying and
manipulating the data.
django Revoke
In Django, the term "revoke" typically refers
to the action of invalidating or canceling an
authentication token or session to
terminate a user's access or log them out.
When a token or session is revoked, it
becomes invalid, and subsequent attempts
to use it for authentication will fail.