I am trying to pass a dict using fetch API to django views but unable to get it in request dict of views. I have tried below steps:
fetch(`/api/getnames`, [{'a': name, 'b': name}])
  .then()
  .catch((err) => {
    console.log('Fetch Error :-S', err);
  })
def getnames(request):
    print(request.__dict__)
I am trying to get the dict passed in par开发者_如何学运维ams while calling the url but dict is not present. Kindly suggest a solution to resolve this issue.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论