diff options
Diffstat (limited to 'docs/backends/mongodb.rst')
| -rw-r--r-- | docs/backends/mongodb.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/backends/mongodb.rst b/docs/backends/mongodb.rst new file mode 100644 index 0000000..2ea997f --- /dev/null +++ b/docs/backends/mongodb.rst @@ -0,0 +1,21 @@ +MongoDB +======= + +A GridFS backend that works with django_mongodb_engine and the upcoming GSoC 2010 MongoDB backend which gets developed by Alex Gaynor. + +Usage (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' |
