Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django request.data example

...#Your view.py code
	@action(detail=True, methods=['POST'])
  	def send_mail(self, request, pk=None):
      email = request.data[0]
      name = request.data[1]
      surname = request.data[2]
...
 
PREVIOUS NEXT
Tagged: #django
ADD COMMENT
Topic
Name
4+4 =