Django Training in Noida | Django Training in Delhi | Django Training institute

When they started learning how to make websites, they learned HTML, CSS, and JavaScript. But they were a little lost because they didn’t know what to do next. It’s enough to know HTML, CSS, and JavaScript. People come across terms like “Frontend” and “Backend” when they start doing research. They learn about front-end and back-en frameworks as they look into it more.

Then they find out that there are a lot of frameworks, which makes it hard for them to choose the right one.

When people learned what backend and frontend meant, they thought, “Backend is something that looks better, and frontend can be done with HTML and CSS so that they will learn backend first.”

When they saw a list of the most popular backends, their minds started to race, and it was hard for them to decide which one would work best for them.

Then they saw Django, which is a Backend framework based on Python. Since they were experts in Python, Django Training in Noida was the best thing for them.

They went to YouTube and searched for “Django tutorials that will make me god of backends.” They found some excellent tutorials that didn’t make them god but helped them get good at Django.

Django is easy to learn and easy to use. If they know Python, they should learn Django. If they don’t know Python, they should learn Python first and then Django.

Facebook is switching its backend from PHP to Django, and Instagram uses Django as its backend framework.

The FRONTEND

It’s harder to choose a front-end framework than a back-end framework.

There are many good options, but they got stuck on three frameworks: Angular JS, Vue JS, and React JS. All three are excellent and very popular, and each has its group of people who like it. After doing a lot of research and thinking about it, they decided to REACT. People think React is an excellent framework, and what they like most about it is how its parts are split up. They wanted to react, and it was easy for them to learn and use. They went back to YouTube and searched for “react tutorial.” There are a lot of tutorials for learning to react, and they didn’t learn from anyone’s video or playlist in particular. You can choose any tutorial you want, but they will tell you to go with the “learning with most” tutorial if you ask them for advice.

One more good thing about learning to react is that they can learn to respond natively after teaching responses.

React Native is a hybrid framework for making mobile apps. It’s easy to learn if you already know how to use React, and you can use it to make good apps, but only simple native apps.

So they talked about the frontend and the backend and what good frameworks to learn are. Let’s see how they can make magic by putting these two frameworks together. Four parts make up an entire website.

If you know Django, you can handle the database and backend. You need to know Django REST for the API, which doesn’t take long to learn and react and is your best weapon for the front end. You can learn more from Django Training in Delhi.

CODING PART

Let’s start by making the back end. For the show, they will use the Login system from a practice project they created. Now that they have learned Django, they assume they know how to act. This project is an online system for keeping track of assignments. To log in, a user needs three things. First, import an “API view” and “Response” decorator to send a response from the API to the frontend. Last but not least, you need to import models, which are references to the database. You can put this line of code in every reactJS file or put it in just one file and import the function into every other file.

The request will now be sent to the backend. You can see that there is a variable called “csrftoken.” Its value comes from the function they made above. Here, they are using fetch. They can also use Axios, but they will use fetch for this. They need to add “csrftoken” to the “X-CSRFToken” part of the “headers.” All of this is done to get the most dangerous front-end and back-end mix. 

LEAVE A REPLY

Please enter your comment!
Please enter your name here