Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the django rest framework an extension to django?


Asked by Julieta Chandler on Dec 02, 2021 Django



The Django REST Framework is a great extension to Django for creating simple, standard, and seamless REST APIs for a site. It also provides a browsable API so that humans can easily see and use the endpoints. It’s fairly easy to change the browsable API’s favicon using a similar template override.
Keeping this in consideration,
REST stands for "representational state transfer" and API stands for application programming interface. You can build a restful api using regular Django, but it will be very tidious. DRF makes everything easy. For comparison, here is simple GET-view using just regular Django, and one using Django Rest Framework:
Next, Falcon and Bottle are Python web frameworks that emphasize speed, albeit with much smaller developer communities, and are worth a look if speed is more important than support and features. The Django platform heavily ties itself to relational database integration.
Besides,
Django Rest Framework Filters. django-rest-framework-filters is an extension to Django REST framework and Django filter that makes it easy to filter across relationships. Historically, this extension also provided a number of additional features and fixes, however the number of features has shrunk as they are merged back into django-filter.
In fact,
This serializer would basically parse any json content in the values. If anyone interested in the easiest example with ModelViewset for Django Rest Framework.