Recently, I need to use the dajngo REST framework toolkit for development in the projects I participated in. Almost all the projects I participated in before use the native django (in other words, I also use Flask occasionally, I really don’t like this framework), and I have listened to it before. I said how powerful this toolkit is, but due to being too busy (lan), (duo), I have not been able to study for certification. This time it is considered a temporary cramming.
Introduction to Django rest framework (purely copied from other blogs)
Django REST framework is a powerful and flexible toolkit for building Web APIs.
Some reasons you might want to use REST framework:
- The Web browsable API is a huge usability win for your developers.
- Authentication policies including packages for OAuth1a and OAuth2.
- Serialization that supports both ORM and non-ORM data sources.
- Customizable all the way down - just use regular function-based views if you don't need the more powerful features.
- Extensive documentation, and great community support.
- Used and trusted by internationally recognised companies including Mozilla, Red Hat, Heroku, and Eventbrite.
Chinese:
Django REST framework is a powerful and flexible toolkit for building web APIs.
Some reasons why we might want to use a REST framework:
- Web browsing APIs are a huge usability for developers.
- Authentication strategies include OAuth1a and OAuth2 packages.
- Serialization of ORM and non-ORM data sources is supported.
- If you don't need more powerful features, you can use regular feature-based views.
- Extensive documentation and good community support.
- Used and trusted by internationally renowned companies including Mozilla, Red Hat, Heroku and Eventbrite.