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
Metadata
Release files for django-mongo-storage 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-mongo-storage-0.3.1.tar.gz | 6.6 kB | Without provenance | Details for django-mongo-storage-0.3.1.tar.gz |
Release files / django-mongo-storage-0.3.1.tar.gz
| Download URL | django-mongo-storage-0.3.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7c60bc198feea9555c62eb80830f73fc65096effacd0cafdf6a5f70f7881a73
|
|
BLAKE2b-256 checksum How to use checksums |
15ff9452a7b86d7ce306c1de00dc4fbeebe3d7275528674b7673e819d636e3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-mongo-storage 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.