Capturing URL parameters in request.GET

后端 未结 13 1025
说谎
说谎 2020-11-22 08:30

I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How do I access parameters from the URL as part the

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 08:49

    For situations where you only have the request object you can use request.parser_context['kwargs']['your_param']

提交回复
热议问题