blob: 2ea997fd9e9a024186139ac6ad4fec576243bd57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'
|