I am currently learning NodeJS and I learned a really neat way of sending big files, using streams, I already have a bit of an experience with Django but how can I do the following in Django (or python)
const http = require('http')
const fs = require('fs')
const server = http.createServer((req, res)=>{
    const fileContent = fs.createReadStream('./content/bigFile.txt', 'utf8')
    fileContent.on('open', ()=>{
        fileContent.pipe(res)
    })
    fileContent.on('error',(err)=>res.end(err) )
})
    
server.listen(5000)
 
    