(request, uid)
return HttpResponse(content=payload, content_type="text/json")
GET request : return project name, text, and image as a JSON file.
    POST request : change project name, text, and image given a JSON file.
GET request : return project name, text, and image as a JSON file.
    POST request : change project name, text, and image given a JSON file.
GET request : return project name text and image as a JSON file . POST request : change project name text and image given a JSON file .
def project_api(request, uid):
    """
    GET request : return project name, text, and image as a JSON file.
    POST request : change project name, text, and image given a JSON file.
    """

    qs = Project.objects.filter(uid=uid)

    # Get the json data with project info
    payload = json_list(qs, show_image=True)

    return HttpResponse(content=payload, content_type="text/json")
def project_api ( request , uid ) : qs = Project . objects . filter ( uid = uid ) # Get the json data with project info payload = json_list ( qs , show_image = True ) return HttpResponse ( content = payload , content_type = "text/json" )