Support for MongoDB's GridFS

Issue #38 resolved
Antonio Ognio created an issue

GridFS is a storage engine for large objects in MongoDB. GridFS takes large objects and stores them as chunks of data as well as metadata

Here's the specification for GridFS:

Here's a request for these feature at StackOverflow:

MongoDB has a Python driver, PyMongo which has an API for GridFS:

django-storages is supporting many of the most interesting data backends in the market today. GridFS could be a valuable addition.

Comments (6)

  1. David Larlet repo owner
    • changed status to open

    django-storages is more an aggregation of storages than a project in itself, if you develop a MongoDB'sGridFS storage I'll be very happy to add it to django-storages but I'll not develop it by myself (excepted if I need too, of course!)

    Anyway, thanks for collecting links, that can be useful for other people.

  2. Waldemar Kornewald

    Here's a GridFS backend that works with django_mongodb_engine and the upcoming GSoC 2010 MongoDB backend which gets developed by Alex Gaynor.

  3. Waldemar Kornewald

    Forgot the usage instructions:


        'default': {
            'ENGINE': 'django_mongodb_engine.mongodb',
            'NAME': 'test',
            'USER': '',
            'PASSWORD': '',
            'HOST': 'localhost',
            'PORT': 27017,
            'SUPPORTS_TRANSACTIONS': False,
    DEFAULT_FILE_STORAGE = 'storages.backends.mongodb.GridFSStorage'
    GRIDFS_DATABASE = 'default'
  4. Log in to comment