Implement GridFS storage user settings

This commit is contained in:
Roberto Rosario
2011-03-04 06:16:00 -04:00
parent 30c6292630
commit a7eee1b192
6 changed files with 19 additions and 10 deletions

View File

View File

@@ -0,0 +1,6 @@
from django.conf import settings
GRIDFS_HOST = getattr(settings, 'STORAGE_GRIDFS_HOST', 'localhost')
GRIDFS_PORT = getattr(settings, 'STORAGE_GRIDFS_PORT', 27017)
DATABASE_NAME = getattr(settings, 'STORAGE_GRIDFS_DATABASE_NAME', u'document_storage')