Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good Django file-browser for non-admin users?

Tags:

django

Do any of you know of a Django app out there for allowing users to browse for files, and upload new ones? The ones I have found seem to be built as an add-on for the admin interface (django-filebrowser, django-filer).

Not aiming for anything incredibly complex, just something that allows a user to upload files and then browse between folders (either specific directories on the server, or artificially generated "folders" out of some model field).

I recall the admin tutorial mentioned "The admin isn’t intended to be used by site visitors. It’s for site managers."

My thought from above is that it would be bad practice to simply allow users to see content via the admin interface, and that it would be better to create an app to allow for this.

like image 859
Geet Avatar asked Oct 18 '25 00:10

Geet


1 Answers

To get the convenience that your end users usually expect in the age of google drive, you really want a complex javascript filebrowser that plays nicely with django.

I'm using yawd-elfinder which is a great django backend for elfinder to manage my students' association's website with great success ( About 1500 users with different groups and privileges). Features:

Yawd-elfinder can manage local files but also use Django filesystem storages to connect to remote filesystems. A set of django options allows control over file and directory permissions, accepted mime types, max file sizes etc.

It allows you to have fairly complex management of files and different permissions for different users by activating different roots and/or mapping them differently based on the user.

Furthermore you have capabilities like drag and drop, upload by drag and drop and it's very customizable.

I'm not sure it's maintained anymore, but you can find working code here with the relevant views and templates.

like image 82
Sebastian Wozny Avatar answered Oct 21 '25 07:10

Sebastian Wozny