Lakshay
Something like that
Lakshay
I have file call cart contain Cart(object)
Are you using Django? I'd put that code in views.py
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
Anshu
Hello guys, should I know html or css before learning Django ? I have already learned Python .
Basic html and css would be enough to get you started, how ever not mandatory if u just want to focus on backend stuff
Lakshay
Hello guys, should I know html or css before learning Django ? I have already learned Python .
Yep if you know phthon and css and html start doing Django tutorials are you good with JS?
Pandit
Hey lakshay U familiar with django?
Lakshay
:)
Lakshay
Hey lakshay U familiar with django?
You need help with some django code?
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
Milad
Hey man you don't "have to" use DRF, you have to get the app working correctly
So your suggestion is to use whatever we want to get our job done Right ?
Lakshay
Unless you're required to use DRF or gateway for an assignment at school
Lakshay
Any leads to where i can find a birth and death registration management system in Python or Django
With Django for this you only need admin that is already built so pretty quick
Milad
Unless you're required to use DRF or gateway for an assignment at school
No it's not required , I wanted Django for load balancing and cause it's used by trusted sources What's your idea about using DRF and api gateways ?
Lakshay
Django doesn't do load balancing I think
Milad
What do you mean by trusted sources?
look for i.e , Instagram , spotify and ....
Lakshay
Yeah you can use containers for you app
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
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 ?
Milad
Just api urls and potentially database stuff
If we want to handle api urls with an API GATEWAY so the DRF would be used for database stuff , right ?
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
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
so I think the role of the DRF would be a public API , that will be controlled and monitored by the API GATEWAY
Lakshay
Django admin inline instances only if they exist....... Did anyone know to do it?
Yep https://django-activity-kids-staging.herokuapp.com/admin/ams/activity/
Milad
can you please correct me If I'm wrong ?
Milad
Is the front end hosted ?
the frontend is going to be developed in React.js and yes it will be hosted on our server
Lakshay
Brother start coding
Lakshay
You don't need to think so much
Milad
Brother start coding
I need to design the system before coding bro ...
Lakshay
Make something small first , whatever you are clear about
Milad
You don't need to think so much
If you could solve my concern I'll tell my team to start developing today :)
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?
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
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?
Mo
https://t.me/django/178370
it is already a dictionary. only its content is changing in the process of object.create