<filename>backendExecPython/evalCode/serializers.py
from rest_framework import serializers

class EvalCodeSerializer(serializers.Serializer):
    code = serializers.CharField(required=True)        
<filename>backendExecPython/evalCode/serializers.py
from rest_framework import serializers

class EvalCodeSerializer(serializers.Serializer):
    code = serializers.CharField(required=True)        