Re: File as data backend for model

2009-01-28 Thread Matthias Julius
Malcolm Tredinnick writes: > On Tue, 2009-01-27 at 17:13 -0500, Matthias Julius wrote: >> I am trying to write a model for which the data can be represented as >> a simple array of a fixed number of one byte integers. To use a >> SQL database for that would be very much overkill. I would simpl

Re: File as data backend for model

2009-01-28 Thread Matthias Julius
Jeff Hammerbacher writes: > Hey Matthias, > > To use Django's model object for this task, you will need to implement a > custom manager for your file's structure; you can see some basic > documentation at > http://docs.djangoproject.com/en/dev/topics/db/managers/#topics-db-managers. > It should

Re: File as data backend for model

2009-01-27 Thread Malcolm Tredinnick
On Tue, 2009-01-27 at 17:13 -0500, Matthias Julius wrote: > I am trying to write a model for which the data can be represented as > a simple array of a fixed number of one byte integers. To use a > SQL database for that would be very much overkill. I would simply use > a file where I can seek to

Re: File as data backend for model

2009-01-27 Thread Jeff Hammerbacher
Hey Matthias, To use Django's model object for this task, you will need to implement a custom manager for your file's structure; you can see some basic documentation at http://docs.djangoproject.com/en/dev/topics/db/managers/#topics-db-managers. It should be noted that Django's ORM is not well sui