sehmaschine / django-filebrowser

Media-Management with Grappelli
http://twitter.com/sehmaschine
Other
976 stars 408 forks source link

Use absolute path for directory #418

Closed DerouineauNicolas closed 11 months ago

DerouineauNicolas commented 11 months ago

Hi, Thanks for this cool project. I'm having a hardtime using filebrowser with an absolute path on the server ("/usr/torrent").

So far I tried the following in my settings.py:

from filebrowser.sites import site

site.location = "/usr/torrent/"
site.directory = ""

But after a quick dive into the code, I see that there is only a location props in sites module. Hence my following question, it there a way to use filebrowser with an absolute path ? and no upload directory (just using it for file browsing/deleting).

DerouineauNicolas commented 11 months ago

I finally found the solution:

    site.storage.location = "/usr/torrent/"
    site.directory = ""

Sorry about the disturbance.