How to call viewset from another app with post method in django rest framework? It's working only with get method but I want to use post method.
@csrf_exempt
@api_view(['POST'])
def new(request):
price = CalculatePriceViewSet().price(request)
price = str(int(round(price, 2) * 100))
print(price)
name = request.data.get('name')
email = request.data.get('email')