class FirstappView(APIView):
def get(self, request):
profiles = Profile.objects.all()
serializer = FirstappSerializer(profiles, many=True)
return Response({"profile": serializer.data})
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('firstapp.urls')),
]