From c059ad47f24394c3bb3f4b4f24a6f9e91280c4ab Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Tue, 7 Jun 2011 15:14:41 +0100 Subject: [PATCH] Updated django docs refs #186 --- docs/django.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/django.rst b/docs/django.rst index bbfbb565..4478b94f 100644 --- a/docs/django.rst +++ b/docs/django.rst @@ -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.:: - - fs = mongoengine.django.storage.GridFSStorage() +storage module is called :class:`~mongoengine.django.storage.GridFSStorage`. +Using it is very similar to using the default FileSystemStorage.:: + + from mongoengine.django.storage import GridFSStorage + fs = GridFSStorage() filename = fs.save('hello.txt', 'Hello, World!')