
Software Developer
Reckonsys Tech LabsSoftware Developer
PeachmodePython/PySpark Developer
Stemmons Business Services
AWS

Vue

Shopify

Stripe
.png)
Flask

AngularJS

Requests

Microservices
.png)
Docker

Docker-Compose

GitHub Actions
.png)
Jenkins

Redis

Elasticsearch
Laravel

Vue.js
Pyspark

Hadoop

Selenium

SVN

Git
My name is Vishal Kumar. I was born and brought up in. I did my schooling from. During my schooling period, I participated in a lot of cultural and sports activities at traditional and national levels. Then I decided to pursue a BTech in computer science. So, I did my BTech from Maharishi Gyan University in Gurgaon with a decent CGPA. While I was in college, I interned at multiple startups, and I worked there as a Python developer. And after I completed my BTech, I started doing jobs in software solution companies. So, currently, I am holding 6 years of experience as a Python Django developer. Yeah. And my hobbies are to explore and travel, to explore and travel, food. Thank you.
JSON web tokens basically mean JSON web authentication token. So JSON web tokens are used to authenticate the front-end request, which are passed to the back end for any API to fetch the data. We provide a token to secure our back end with our JWT token. So that token, in every request, we need to send the JWT token to the back end to get the API response. This will create a secure layer for our APIs so that anyone cannot access all the APIs yet. And the endpoints we need to implement JWT are, like, first, we need to have an endpoint for creating a token. For creating a token, we can add that API in the login itself when the user creates a login and enters their username and password and logs in. We can issue an authentication token to them. Then we can use that authentication token to pass into all of the requests, and we can give them data. So one of the APIs to fetch a new token along with it, then we can have a verified token API. So it will verify all the tokens coming from the front end. And we can also set an expiration to our JWT token. Once the token is expired and the user's session is selected, then we can refresh the token and that will be the process. So these are three different kinds of API which we will need to implement the data portal.
Yes, select related and prefetch. These are Django ORM queries. So in select related, we can if you want to select a relational singular column, then we use select_related. We'll support like we have two models. 1 is an author model and one is a book model. So every book has an author. So if you want to select the books which have which author, then we can do books.objects.select_related() and then we can do author. So that will fetch us the author. And if you want to select the author's name, then we can do author__name. So that is the use of select_related. So in prefetch phase, we basically use this to refresh all the relational data which is present in that model object. So we will use prefetch_related to select all the relations without doing another query to fetch that relation. So these are the two concepts.
Yep. So view and model view user. All three things are used to write the views of Django. Views of Django, which are displayed on the web browser, means which is getting shown on the web browser. So in view, like, the major difference between view, user, and model user. It's in the model user. We will have the view related to the model itself. So the getting such fetching of the model record and the updating the model record and deleting from the model report. These are the credit of, yeah. Like, credit application which we can apply on a model object. So those functionalities will already be provided by the model user. So we can just directly name the function. Like, if we name the function get, set, then it will fetch out first the reports for us from the model itself. And you said we will have to define the model from which model it is related to. Or we can even skip doing that part for relating it to the model. We can directly write our custom new APIs where we can use any model in the custom view API. We can define the function and use the custom model, and that we can work on that. The custom view is basically it's just like a view set. Just that the definition, the syntax for writing the view and defining it in URLs is a little different, and we do have some less functionality.