Python - How to import 'Serializer' -- django

Import Serializer

To import Serializer, Add the following line to the top of your code.

from django.contrib.gis.serializers.geojson import Serializer

 

For more information about Serializer:
django Serializer