Hi.
In this video we will be talking about Django rest framework.
So basically we will add rest into our Django and we'll use this framework which is you can find it
on WW dot Django rest framework.org.
What is rest.
Rest is representational state transfer.
So basically that's trend now to serve the data.
If we have data on our server we need to actually to communicate with our front end.
So if we have front end using some framework, we need to from that framework, ask for a data and that
data will come back to us.
Usually that's a Json format and then that format we can use in the framework and display somehow.
So Django Rest framework will give us that opportunity to serve our backend data in a nice format that
we can actually use and we'll use this chunk of rest framework for the rest of the tutorial and I will
show you how to do it.
So basically what we need to do in our Django is we need to add it to Django.
We'll come back here and I can close those.
What we need to do is we need to go to terminal and inside here we can do Pip install Django rest framework
altogether.
So pip install Django rest framework.
And you can see Django rest framework has been installed with version 3.92.
So that's done.
What we also need to do is going to our project and our project is first and then inside settings.
You can see here inside installed apps, whatever we add something like this.
We also need to add it to installed apps.
So in our case we are adding rest underscore framework.
Like that, uh, like that framework and then comma at the end.
So we have rest framework added to our installed apps just to make sure whatever you add it like that,
you also need to make sure all the migrations will be applied.
In fact, there is no migrations for this Django rest, but you might have other cases or other apps
that might need to have a migrations applied.
So you will have that command Python manage.py migrate.
You don't need to do make migrations because if some of the frameworks will come with migration, it
will be already built in.
So you don't need to do make migration, just migrate and you click it.
And in our case there is no migrations to apply.
So we are good to go.
So we have Django rest framework added to to Django and then we can use it.
And in the next video I will show you how we can actually build or serve some of our data with Serializers.