1. David Larlet
  2. django-storages
  3. Issues

Issues

Issue #38 resolved

Support for MongoDB's GridFS

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:

http://www.mongodb.org/display/DOCS/GridFS+Specification

Here's a request for these feature at StackOverflow:

http://stackoverflow.com/questions/1448386/django-custom-storage-system-for-gridfs-mongodb

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

http://api.mongodb.org/python/0.15.2/gridfs-module.html

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

    Forgot the usage instructions:

    In settings.py:

    DATABASES = {
        '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'
    
  3. Log in to comment