Muri Nicanor
unread,Jul 29, 2018, 7:44:14 AM7/29/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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