Skip to content Skip to sidebar Skip to footer

Trying To Understand Django Source Code And Cause Of Missing Argument Typeerror

A screenshot (portrait view) of my IDE and Traceback showing all the code pasted here, may be easier to read if you have a vertical monitor. Context: Trying to save image from a UR

Solution 1:

I'd make a guess you didn't instantiate the Storage class. How are you setting Django to use the custom storage? If you do this in models.py

image = models.ImageField(storage=MyStorage)

It will fail exactly as you describe. It should be

image = models.ImageField(storage=MyStorage())


Post a Comment for "Trying To Understand Django Source Code And Cause Of Missing Argument Typeerror"