This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A mongo GridFS storage backend for django.

Project Description

A helper app for using MongoDB’s GridFS as a storage backend for django.

mongo_storage contents include:

models.py
  • MongoFileModel: a model mixin creating a MongoFileField called content
  • MongoDeleteFileModel: a model mixin that will delete the underlying file when the model is deleted
fields.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 adapters
admin.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.
Dependencies:
  • mongodb Database
  • pymongo
  • django
Release History

Release History

This version
History Node

0.3.1

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-mongo-storage-0.3.1.tar.gz (6.6 kB) Copy SHA256 Checksum SHA256 Source Jun 27, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting