Dan Ward Follow me on Twitter View my LinkedIn profile Subscribe to my news feed   

A self-confessed geek and web developer

 

Blog entries for MongoDB

From time-to-time, I'll have a brainwave while trying to figure out something tech-oriented; well, either that or I just want to get something off my chest. Anyhow, if I get round to typing it up, it'll wind up here in the blog.

Blog categories

 

  • A custom MongoDb/GridFS file wrapper for the Django HttpResponse object

    Created by dan on Monday 22nd February, 2010 at 4:28 PM

    Until today, I had been using Django's FileWrapper class to iterate over an open GridFS and yeild chunks to an HttpResponse object, however I noticed that files over 8 KB were being reiterated in the output. As far as I could fathom, the reason why this had been occurring is ...

  • Removing an entry from MongoDB in Python/Django using '_id' and getlist

    Created by dan on Friday 15th January, 2010 at 6:38 PM

    I've got to the point where I have a table containing all entries from a set Mongo collection. They each have a checkbox beside them with the value of '_id' where I can select them for a magical journey in to the mass deletion/modification abilities of the associated Django view. ...

  • Outputting an '_id' value from MongoDB in a Django template

    Created by dan on Friday 15th January, 2010 at 5:48 PM

    If you've not already noticed, Django's template rendering engine forbids referencing variables, which are prefixed with an underscore. Because of this, we have to faff about with a filter or alike. The below filter should do the job for the _id field. I'm not going in to any more detail on ...