မင်္ဂလာပါ!

လှိုက်လှဲစွာကြိုဆိုပါသည်။ ယခု ပထမဆုံးအကြိမ် ရောက်ဖူးခြင်းဖြစ်ပါသလား? ဝင်ရောက် ဆွေးနွေး မေးမြန်းလိုပါလျှင် အောက်တွင်ဖော်ပြထားသော button များမှတဆင့် ဝင်ရောက် ဆွေးနွေးနိုင်သကဲ့သို့ အဖွဲ့ဝင်အသစ်အနေဖြင့်လည်း လျှောက်ထားနိုင်ပါတယ်။

MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

What is django rest framework?

How to get data into my database use by django rest framework?

http://www.django-rest-framework.org/

မှတ်ချက်များ

  • Registered Users

    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)
    if serializer.is_valid():
    serializer.save()
    return JSONResponse(serializer.data, status=201)
    return JSONResponse(serializer.errors, status=400)

    Please read more from this following link.
    1. http://www.django-rest-framework.org/api-guide/serializers/

    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.

  • Registered Users

    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.

  • Registered Users

    Of course; you can use mysql database and request data with django framework. And it is also possible to decode.

  • Registered Users

    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?

  • edited November 2016 Registered Users

    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.

Sign In or Register to comment.