[Fixed]-Django how to get data in post that was sent with get?

1👍

It will be an attribute of request (reference).

data = request.POST # python dictionary-like

The view gets the argument in this order: request, positional url argument list, named url arugments as dictionary (doc reference):

def post(self, request, *args, **kwargs):
    post_data = request.post
    get_data = request.GET 
    non_named_url_argument_list = args 
    named_url_argument_dict = kwargs

Leave a comment