Python - How to import 'storage' -- django

Import storage

To import storage, Add the following line to the top of your code.

from django.contrib.staticfiles import storage

 

For more information about storage:
django storage