django-mongo-storage

A mongo GridFS storage backend for Django
Download

django-mongo-storage Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Aaron Madison and Matt Morrison
  • Publisher web site:
  • https://github.com/madisona/

django-mongo-storage Tags


django-mongo-storage Description

A mongo GridFS storage backend for Django django-mongo-storage is a helper Django app for using MongoDB's GridFS as a storage backend for Django.mongo_storage contents include:models.py MongoFileMixin: a model mixin creating a MongoFileField called content MongoDeleteFileMixin: a model mixin that will delete the underlying file when the model is deletedfields.py MongoFileField: a custom file field that gives you access to the file name through a 'file_name' property. Useful because the GridFSStorage makes Django store the MongoDB ObjectId instead of the file name.storage.py GridFSStorage: the Django storage module to interact with the pymongo, MongoDB's python adaptersadmin.py MongoFileAdminMixin: gives the ModelAdmin access to the stored file's file name and file size. DeleteActionMixin: allows ModelAdmin to call the delete method on each model being deleted (so the underlying file will be delete also) when deleting items in bulk. Requirements: · Python · Django


django-mongo-storage Related Software