Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get query param in django

class FilterMealList(views.APIView):

    def get(self, request, **kwargs):
        user_id = self.kwargs['user_id']
        from_time = self.request.GET.get('from_time')
        to_time = self.request.GET.get('to_time')
        from_date = self.request.GET.get('from_date')
        to_date = self.request.GET.get('to_date')
        # …
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #param #django
ADD COMMENT
Topic
Name
6+4 =