Updated django docs refs #186

This commit is contained in:
Ross Lawley 2011-06-07 15:14:41 +01:00
parent 1ee50922d9
commit c059ad47f2

View File

@ -49,10 +49,11 @@ Storage
=======
With MongoEngine's support for GridFS via the :class:`~mongoengine.FileField`,
it is useful to have a Django file storage backend that wraps this. The new
storage module is called :class:`~mongoengine.django.GridFSStorage`. Using it
is very similar to using the default FileSystemStorage.::
storage module is called :class:`~mongoengine.django.storage.GridFSStorage`.
Using it is very similar to using the default FileSystemStorage.::
fs = mongoengine.django.storage.GridFSStorage()
from mongoengine.django.storage import GridFSStorage
fs = GridFSStorage()
filename = fs.save('hello.txt', 'Hello, World!')