လှိုက်လှဲစွာကြိုဆိုပါသည်။ ယခု ပထမဆုံးအကြိမ် ရောက်ဖူးခြင်းဖြစ်ပါသလား? ဝင်ရောက် ဆွေးနွေး မေးမြန်းလိုပါလျှင် အောက်တွင်ဖော်ပြထားသော button များမှတဆင့် ဝင်ရောက် ဆွေးနွေးနိုင်သကဲ့သို့ အဖွဲ့ဝင်အသစ်အနေဖြင့်လည်း လျှောက်ထားနိုင်ပါတယ်။
How to get data into my database use by django rest framework?
It is not PHP. Django is Python Framework. In honestly, I don't understand what you want to know. I guess you want to know about "Serializer ".
In your question; you asked about saving to database. Which database are you using. Please check following code about saving in basic serializer.
request.method == 'POST':
data = JSONParser().parse(request)
serializer = SnippetSerializer(data=data)
return JSONResponse(serializer.data, status=201)
return JSONResponse(serializer.errors, status=400)
Please read more from this following link.
To use django rest framework, If you have experience in python, It will be easier.
If you want to learn python from basic, I prefer this site. I also started to learn python from that site.
I'm use mysql database. I want to get data from django rest framework and that data is output json and api format. It is possible, request data from framework to mysql database using
json_decode("") method. Please help. It is possible or not.
Of course; you can use mysql database and request data with django framework. And it is also possible to decode.
Thanks. I request data from django but it get data from one pangination page. I mean that this is show by pangination. Data is very much and record is nearly 1lakhs. So, I get all data. Is it possible?
In programming, there is two limitation (just my assumption).
First one is language can't support the feature and Second one is performance can't support.
Let back to your question,
In the programming point of view, that is possible.
But, as your statement, Data is very much and record is nearly 1lakhs. So, I get all data. Is it possible?. You may need to take care about performance.
Most of my time, I work with Django and Cassandra Database. So I am not sure about performance of using django with mySQL. I hope, it will be ok.
Thanks for your time. I am clean understand for your explains to me.