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
Using this package, I wasn't aware that that library falls back to service regular filesystem MEDIA_ROOT if there is no hit in the database. Indeed if you read through the README carefuly, you get it, but it's not obvious from the library's scope.
Since I was expecting to not use the MEDIA_ROOT whatsoever, I didn't put that in my settings.py, so it uses django's default which is "".
Results: django-binary-database-files default endpoint happily leaks my source folder !!
I think the library should throw an Exception if MEDIA_ROOT isn't explictly set (arguably, Django should include such as warning out of the box), and this should be more clearly documented.
I may be able to work on a fix if you're taking in PRs
The text was updated successfully, but these errors were encountered:
Hey ! First, thanks for the package.
Using this package, I wasn't aware that that library falls back to service regular filesystem MEDIA_ROOT if there is no hit in the database. Indeed if you read through the README carefuly, you get it, but it's not obvious from the library's scope.
Since I was expecting to not use the MEDIA_ROOT whatsoever, I didn't put that in my settings.py, so it uses django's default which is "".
Results: django-binary-database-files default endpoint happily leaks my source folder !!
I think the library should throw an Exception if MEDIA_ROOT isn't explictly set (arguably, Django should include such as warning out of the box), and this should be more clearly documented.
I may be able to work on a fix if you're taking in PRs
The text was updated successfully, but these errors were encountered: