Sunday, July 29, 2018

File-Backend or Filemanagement

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7c5feda-eacf-ce7b-583b-b1e6a029deeb%40immerda.ch.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment