Django Flashcards
Django Interview Questions
What does Of Django Field Class types do?
Field class type determine if the model data will be an integer, char, date, email etc.
◦It specifies the database column type.
◦It also specifies the default HTML widget which is availed while we render the form field.
◦The requirements of the minimal validation which is used in Django admin is also specified by the field class.
Django design (architectural) model?
Django follows Model-View-Controller (MVC) architectural pattern.
Clarify the architecture of Django?
Clarify the architecture of Django?
Django follows MVC -MVT architecture. MVT stand for Model View Template design Pattern which is little bit different from MVC (Model View Controller ) Pattern.
Is Django a high level or low-level framework?.
Is Django a high level or low-level framework?
Django is a high-level Python’s web framework which was designed for rapid development and clean realistic design.
How does Django work?
How does Django work?
Django can be broken into several components:
◦ Models.py file: This file defines your data model by extending your single code line into full database tables and add a pre-built administration section to manage content.
◦ Urls.py file: It uses a habitual expression to confine URL patterns for processing.
◦ Views.py file: It is the main part of Django. The actual processing happens in view.
What are the advantages of using Django for web development?
What are the advantages of using Django for web development?
◦Auto-generated web admin is provided by Django to make website administration easy.
◦Pre-packaged API is also available for common user tasks.
◦Business logic can be separated from the HTML using this framework.
◦You can even divide the code modules into logical groups so as to make it flexible for changing.
◦Template system is being provided so as to define HTML template for your web page to avoid code duplication.
What is the use of session framework in Django?
What is the use of session framework in Django?
The session framework helps you in storing and retrieving arbitrary data on a per-site visitor basis. The data is stored on the server side and abstracts the receiving and sending of cookies. We can implement sessions through a piece of middleware.