User-side browsing

72 views
Skip to first unread message

James Classen

unread,
Feb 9, 2014, 9:57:46 PM2/9/14
to django...@googlegroups.com
I'm new to django-filer, and I've spent the last few hours reading the documentation, the code, and whatever I can find throughout the Internet, but I can't find any example of a template to allow users outside the admin interface to browse files. I've tried copying the admin templates to a user-facing page but all links go back to the admin interface (not to mention the appearance of the admin interface in my webpage looks quite out of place). I'm sure there's an easier way than adding links to flatpages, as that is a very tedious process. Putting something like this in the documentation would be nice, as well...

Thanks,

James

Stefan Foulis

unread,
Mar 17, 2014, 1:09:22 PM3/17/14
to django...@googlegroups.com, jcla...@gmail.com
Hi James

Unfortunately we don't have any widgets for usage outside the admin yet. What you can do is put a normal file field on the form and in the view handle the uploaded file by creating a filer.File model and assign the UploadedFile to file.file. You should also set an owner and assign it to a Folder.

Hope this helps.

Cheers
Stefan
Reply all
Reply to author
Forward
0 new messages