Multilevel Inner Nested Rest Api

2020-09-25 Thread John Robert
Hi guys am new to django field .I have a task to complete. The requirement, 1) I have 5 models each model should be inner nested with another model 2) I need to perform all CRUD operations by using the Rest API tool I will provide my code here , please help me to short out this issue

Re: ListCreateAPIView Django rest framework Method \"POST\" not allowed

2020-09-25 Thread Linovia
Hi, What does your router look like ? Regards, Xavier O. Le 25 sept. 2020 à 13:48 +0200, Pradyum Gupta , a écrit : > See I don't know this is actually a very weird error that am receiving. > > Inside *Company App* > > views.py > ```python3 > class CompanyView(generics.ListCreateAPIView): >     q

ListCreateAPIView Django rest framework Method \"POST\" not allowed

2020-09-25 Thread Pradyum Gupta
See I don't know this is actually a very weird error that am receiving. Inside *Company App* views.py ```python3 class CompanyView(generics.ListCreateAPIView): queryset = CompanyProfile.objects.all() serializer_class = RegisterationCompanySerializer permission_classes = (permissions.I