Python Forum
upload big file in Django with process bar and i get error : MemoryError
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload big file in Django with process bar and i get error : MemoryError
#4
As DeaD_EyE sad, "print" function can be the reason of troubles, especially in Windows (you use Windows as I guess seeing IIS).
I've run the same code on Windows 10 Pro core I7 64GB, And Linux virtual machine.

import timeit
print(timeit.timeit("print(1)", number=1000))
Now, look to results:

Windows:
0.2165976

Linux:
0.0051541

First of all rid of print. It gives you terrible overhead in any case.
Second, try your code on the usually recommended environment: Linux + uwsgi + Nginx. I can't except, that IIS is the trouble maker.
Reply


Messages In This Thread
RE: upload big file in Django with process bar and i get error : MemoryError - by fishhook - Aug-06-2019, 06:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python django view error ZeeKolachi 1 333 Mar-18-2024, 03:14 PM
Last Post: Sowmya
Photo After using models.Model on my class Im getting 'ImproperlyConfigured' error Django khavro 1 2,180 Apr-05-2021, 03:11 PM
Last Post: SheeppOSU
  Error - ManyToMany Fields in Django rob25111 0 1,528 Jan-17-2021, 04:58 PM
Last Post: rob25111
  creating an exe file for a python django project Sanjish 0 2,615 Dec-27-2020, 07:33 AM
Last Post: Sanjish
  Upload big file on the server HTTP protocol Timych 1 2,413 May-15-2020, 07:12 AM
Last Post: snippsat
  [Django] css file is not applying to the page SheeppOSU 1 3,071 May-09-2020, 06:54 AM
Last Post: menator01
  fix error upload image in python abdlwafitahiri 1 2,358 Jan-05-2020, 08:49 AM
Last Post: Larz60+
  Django Python Vscode Error Please Help Smhbugra 3 2,711 Jun-30-2019, 10:54 AM
Last Post: noisefloor
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,311 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django Connection Error erfanakbari1 1 2,590 Mar-21-2019, 08:09 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020