How to Solve NameError: name 'storage' is not defined -- firebase_admin

Solution: Import the 'storage' module

To Solve the error, add the following line to the top of your code.

from firebase_admin import storage

 

For more information:
Python firebase_admin storage