[Python] How do I post a lot of data to Django?

Discussão em 'Python' iniciado por Stack, Agosto 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to send of list of files to my Django web site. Each set is transmitted with the following info:

    • File name,
    • File size,
    • File location,
    • File type

    Now, suppose I have 100 such sets of data, and I want to send it to my Django Website, what is the best method I Should use?

    PS: I was thinking of using JSON, and then POST that JSON data to my Django URL. The data might then look like this:

    {
    "files": [
    { "filename":"Movie1" , "filesize":"702", "filelocation":"C:/", "filetype":"avi" },
    { "filename":"Movie2" , "filesize":"800", "filelocation":"C:/", "filetype":"avi" },
    { "filename":"Movie3" , "filesize":"900", "filelocation":"C:/", "filetype":"avi" }
    ]
    }

    Continue reading...

Compartilhe esta Página