Hello guys, welcome to learnvern.
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.
Ok? Right?
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.
Ok?
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.
Ok?
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
Ok?
right?
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.
JavaScript, CSS are static files And are created in a static folder .
What are its uses?
to make your website more responsive, colorful and use javascript.
Ok?
Right?
Clear?
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.
Ok?
Right?
Clear?
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.
Right?
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.
Right?
Clear?
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.
Right?
So all these things are included in the session.
Clear?
So these were some interview questions of Django.
Important and you should know them when you will give your django interview in industries.
Thankyou
Share a personalized message with your friends.