Lakshay
Something like that
Anurag
Hello, i am freelancer if anyone want service like building Portfolio website , landing page website, Scraping data then kindly contact me on fiverr.
My gigs -
https://www.fiverr.com/s2/4c1cb862be
Lakshay
5P34R
Lakshay
Pandit
Hey lakshay
U familiar with django?
Lakshay
:)
Lakshay
Milad
hello
is there any conflict with using api gateways and Django rest framework ?
Milad
there is something wrong with my mindset , if you could solve it it would be great
look I don't know exaclty what should django rest api do in a microservice based SaaS
I mean what parts of the system should be on the Django Rest API ?
for i.e , we can use a API Gateway for authentication/authorization,request forwarding,accecss controls and ...
so what would be done with Django Rest API ???
Mohsen
Hi, I want to create a drop_down list and select the names of the tables from the SQL database and display the contents of the table.
Someone can help me?
Kevin
Any leads to where i can find a birth and death registration management system in Python or Django
Lakshay
Lakshay
Doragonsureiyā
Milad
Lakshay
Lakshay
Unless you're required to use DRF or gateway for an assignment at school
Lakshay
Lakshay
Lakshay
Lakshay
Milad
Lakshay
Django doesn't do load balancing I think
Lakshay
Yeah you can use containers for you app
Milad
Milad
consider a Microservice based SaaS and consider that it is using DRF
what parts of the system would be done with the DFR ?
Milad
Do you get what I'm talking about ?
I want to know about role of the DRF in a microservice based SaaS
Lakshay
Just api urls and potentially database stuff
Lakshay
Depends on your use case
Milad
Milad
should we see the DRF as a microservice too ?
Milad
Depends on your use case
can you please tell me some of the most common use cases about using DRF in microservice based SaaS ?
Lakshay
Ok can you first define what you mean or what you understand a microservice is
Lakshay
Let's be clear on what we are talking about
Lakshay
And what exactly you mean / understand by API gateway?
Lakshay
Cos I feel you're using these terms but you are not exactly sure about what they are, is it true?
Azizbek Xushnazarov
Lakshay
I don't mean to be rude but to keep the discussion productive, it's important we.are clear about these things
Milad
Milad
this is my definition of an API GATEWAY :
we have a layer between the client and microservices called an API gateway. It is a front-facing service for all of the microservices. Now any client who wants to access the microservices, the client has to call the API gateway. Now API gateway, in turn, makes a call to all of the microservices and gets whatever response we might need. This process is called API composition.
source :
https://geekflare.com/api-gateway/
Milad
as the microservices are going to use the API to work together they have an Internal API ( for calling each other and interaction )
that It would be developed on the microservice side ...
Muhammed
Django admin inline instances only if they exist....... Did anyone know to do it?
Milad
Milad
so I think the role of the DRF would be a public API , that will be controlled and monitored by the API GATEWAY
Lakshay
Milad
can you please correct me If I'm wrong ?
Lakshay
Lakshay
Lakshay
Brother start coding
Lakshay
You don't need to think so much
Lakshay
Make something small first , whatever you are clear about
Milad
Is my mindset all ok about these things that I said
Lakshay
Yes
Milad
Thanks
Shukurillo
elif request.method == 'POST':
data = JSONParser().parse(request)
serializer = ArticleSerializer(data = data)
can anyone explain this code please?
Lakshay
Shukurillo
It's a DRF post request handler
I understand that, but after converting json on the second line to python object, why does it pass data to serializer on the third line?
Lakshay
Json can not be understood by python
Lakshay
So need serializer to make python understand json
Azizbek Xushnazarov
I think Serializer should get QueryDict too. because we need to use 3rd party module to do such simple operation
Mo
Hi, when i save json data in jsonfield by object.creat syntax, the saved data in databse is not standard. for example its True is converted to true or ' ' to " ". why it is like that? Thanks
Lakshay
Lakshay
Lakshay
Are you doing assignment?
Lakshay
Actually
Lakshay
We can do it without serializer
Shukurillo
Does a serilalizer in django convert data in json when get request?
Lakshay
Lakshay