You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After quite a bit of mucking around, I was able to get this working without putting DEFAULT_FILE_STORAGE = 'db_file_storage.storage.DatabaseFileStorage' in my settings as is described in the README.
I found how to get it working with the use of storage=DatabaseStorage(..) in their tests, and notice there isn't any similar tests or docs here which explain how to do that. See also kimetrica/django-binary-database-files#32 about that. I had seen storage was available in the core Django field docs , but I tried quite a few incorrect incantations before realising how simple it was.
After quite a bit of mucking around, I was able to get this working without putting
DEFAULT_FILE_STORAGE = 'db_file_storage.storage.DatabaseFileStorage'
in my settings as is described in the README.I wrote up my use case in a bit more detail at kimetrica/django-binary-database-files#31 which I was also experimenting with.
I found how to get it working with the use of
storage=DatabaseStorage(..)
in their tests, and notice there isn't any similar tests or docs here which explain how to do that. See also kimetrica/django-binary-database-files#32 about that. I had seenstorage
was available in the core Django field docs , but I tried quite a few incorrect incantations before realising how simple it was.The models setup I have used is
I think this should be explained in the docs, and have tests to make sure it works correctly without relying on
DEFAULT_FILE_STORAGE
.The text was updated successfully, but these errors were encountered: