Blog categories
- Web development (13)
- Python (9)
- Django (8)
- Javascript (4)
- HTML (3)
- jQuery (3)
- MongoDB (3)
- PHP (2)
- MySQL (2)
- Linux (1)
- GridFS (1)
- GD (1)
- VLC (1)
- Mac OS (1)
- IPTV (1)
- Ubuntu (1)
-
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 ...