Here's a partial of a view that processes an uploaded json file.
I just mimicked the behavior I used for testing on my own machine and wrote the file to a directory I specified in settings. On WebFaction Nginx comes in to play. I'm getting an error from the Django process: [Errno 2] No such file or directory: '/home/danjewett/webapps/findcoltrane/tmp/O.json' as if the file is not being written to disk, and I'm getting a warning from Nginx: 2017/12/06 22:08:30 [warn] 35884#0: *45632687 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000007895, client: 67.85.216.93,... I'm not sure if buffering is the issue, or whether I'm just coding it incorrectly. The process fails with files of any size. The smallest I tried was @100KB My code is trying to write the file to one location while Nginx has another idea?. |
The question has been closed for the following reason "The question is answered, right answer was accepted" by seanf 07 Dec '17, 00:53
Please pardon me. Script is working. I had an error in my answered 07 Dec '17, 00:34 danjewett |