title: Django serializers vs rest_framework serializers
body: <p>What is the difference between <code>Django serializers</code> vs <code>rest_framework serializers</code>?
  I making a webapp, where I want the API to be part of the primary app created by the project. Not creating a separate App for the API functionality. Which serializer do I need to use for Django views and models, and at the same time will work for the API? </p>
  
  <pre><code>from django.core import serializers
  </code></pre>
  
  <p><a href="https://docs.djangoproject.com/en/3.0/topics/serialization/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/3.0/topics/serialization/</a></p>
  
  <pre><code>from rest_framework import serializers
  </code></pre>
  
  <p><a href="https://www.django-rest-framework.org/api-guide/serializers/" rel="nofollow noreferrer">https://www.django-rest-framework.org/api-guide/serializers/</a></p>