So today we are going to discuss interview questions of django.
I am going to tell you some questions that can be asked in the interview of industry in django, When you will go to the industries for your interview.
Ok so let’s start.
So the first question is what is django?
Django is a web development framework of python, with which you can perform dynamic web development.
So what is our next question?
Which architectural pattern does django follow?
So django follows MVT architecture which means it follows a model view template architecture pattern.
So the third question here is to explain django architecture.
What we got to know in the previous question is what architectural pattern it follows.
In the third question we need to explain the architecture of django.
So don't get confused in both of these questions.
What is our third question, it is about explaining django architecture.
So you need to explain MVT architecture.
So how will you explain it?
So MVT - ‘m’ stands for the model.
Model means the tables of the database are made in models dot py in django.
Then V stands for the view.
View means your backend.
In which you perform your controlling or functionality.
You write your server-side logic.
That is called a view.
And T means template.
Template stands for the front end.
Meaning of frontend :- which is visible to the user, is done in the templates.
4th question is what are models in django
Model stands for the database table In which we decide our tables, Database schema and its fields.
So our next question is what are views in Django.
View stand for your back end.
With help of this your model and Template is controlled in your django.
Meaning your request is handle from the view.
So our next question is what is django ORM.
Here Django fires its queries.
ORM queries stands for Object relational mapping.
In which we write our queries of Django.
As we have methods for ORM - All, get, filter, Create, save, delete.
All these methods are used for ORM quarries
Let’s move ahead.
What is the next question?
Define static files and explain their uses.
First you need to tell where your static files are made. And then its uses.
What are its uses?
Next question is what are Django urls.
What does Django URL mean?
Here urls help to make your Particular request reach to the view.
That is Django URL s.
And this is written in an app which is urls dot py file.
With the help of this your view gets called.
Next question is, what is the difference between an app And a project in Django.
Here you need to tell the difference between the app and project that we create in Django.
So first of all what is a project?
It's a configuration Process.
With the help of this your app is handled.
What does app mean?
where we do our server side coding, keep our templates, and also keep our view.
Also our models kept in the app.
In the project we do our data configuration, setting configuration, And app URL configuration.
And in the app we configure the URL but that url is for calling the views.
In the app, our models are configured.
With the help of this, we create a table of databases.
Templates are created in the app.
With The help of this, the user can see the front end.
And views are created in the app.
With the help of this, features of the front end perform their activity.
Next question is what database is supported by Django.
Django supports all the databases.
Like my SQL. PostgreSQL, no sql, sql alchemy, then php my admin,
Then django also supports oracle.
In short Django supports all the databases.
Here You just have to show the list of django database support.
Next question is what is the use of session Framework in Django.
In Django we learnt about sessions.
What is a session used for?
We need to explain that over here.
Session is used to handle the activities of the user.
To check if the user is logged in.
With the help of a session, you can access the data on any page.
You just need to put that data into the session .
Session works for the server side And is most secured.
With the help of session, you can check the user over here, also his validation.
Accessibility of the website is given only to those users who are logged in.
If the user is not in the session, he won't get the accessibility.
So all these things are included in the session.
So these were some interview questions of Django.
Important and you should know them when you will give your django interview in industries.
A view function, or simply "view," is a Python function that receives a web request and provides a web response. This response could be the HTML content of a web page, a redirect, a 404 error, an XML document, or a picture, among other things.
This ORM (Object Relational Mapper) allows us to deal with databases in a more pythonic approach, such as avoiding writing raw queries and retrieving, saving, deleting, and performing other database activities without ever writing a SQL query. It functions as a layer of abstraction between the models and the database.
Although both procedures are used to retrieve related fields from a model, their functionality differs slightly. In simple terms, select related employs a foreign key relationship, which means it uses join on the query itself, whereas prefetch related does a separate lookup and joining on the Python side.
The Django web framework is administered and maintained by the Django Software Foundation, a non-profit organisation (DSF). The Django Web framework is promoted, supported, and advanced by the foundation.
Yes, Django is really reliable. Django is used by many firms, including Disqus, Instagram, Pinterest, and Mozilla.
where will i get code access for the project source code?
this course structure is very good. I suggest for learning to this website.
Superb and amazing 😍🤩 enjoyable experience.
Er Komal Gupta
thnku so much sir. after waisting so mch time in boring videos.i learned only from here.explained vry well and i will suggest evryone that learnvern is the bst online plateform where you can learnalot
ajax lesson was something like boring . But , learned a lot with the sunit sir . Just learned how to deal with ajax in django