File-Backend or Filemanagement

15 views
Skip to first unread message

Muri Nicanor

unread,
Jul 29, 2018, 7:44:14 AM7/29/18
to django...@googlegroups.com
Hi list,

i'm writing a Django application that has the management of textfiles on
the server as one of the requirements. I've already created a model that
parses the textfiles and provides a way of editing the files. To choose
the indivdiual textfiles i created a simple view that does a file
listing (basically an os.listdir()), but that is not really a flexible
solution (i.e. i would like to have pagination). I was wondering if it
was possible to use a ListView and use the file listing as a source of
objects instead of a database query?

Another option would be to go deeper and try to write a 'file-based'
database backend. Are there any howtos to write database backends for
Django?

thanks and cheers,
Muri

Melvyn Sopacua

unread,
Jul 29, 2018, 2:10:15 PM7/29/18
to django...@googlegroups.com
On zondag 29 juli 2018 10:50:58 CEST Muri Nicanor wrote:

> i'm writing a Django application that has the management of textfiles on
> the server as one of the requirements. I've already created a model that
> parses the textfiles and provides a way of editing the files. To choose
> the indivdiual textfiles i created a simple view that does a file
> listing (basically an os.listdir()), but that is not really a flexible
> solution (i.e. i would like to have pagination).

Please don't reinvent the wheel. There's plenty to choose from.
https://djangopackages.org/grids/g/file-managers/
--
Melvyn Sopacua


Reply all
Reply to author
Forward
0 new messages