[Django]-Trying to understand Django source code and cause of missing argument TypeError

8👍

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())

👤Bufke

Leave a comment