Django Flashcards

Django Interview Questions

1
Q

What does Of Django Field Class types do?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Django design (architectural) model?

A

Django follows Model-View-Controller (MVC) architectural pattern.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Clarify the architecture of Django?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is Django a high level or low-level framework?.

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does Django work?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the advantages of using Django for web development?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the use of session framework in Django?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly