Skip to content

Instantly share code, notes, and snippets.

Last active Oct 25, 2018
What would you like to do?
Django save file to storage & Read from storage without model
from import default_storage
# Saving POST'ed file to storage
file = request.FILES['myfile']
filename =, file)
# Reading file from storage
file =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment