Remove the SITE_ROOT settings variable and use Django's MEDIA_ROOT instead.

By default MEDIA_ROOT will point to a new 'media' inside Mayan's main directory.
This commit is contained in:
Roberto Rosario
2014-07-11 01:06:50 -04:00
parent 3f9adb0922
commit f2c351fbc7
6 changed files with 9 additions and 6 deletions

View File

@@ -41,6 +41,6 @@ register_settings(
{'name': u'ZOOM_MIN_LEVEL', 'global_name': u'DOCUMENTS_ZOOM_MIN_LEVEL', 'default': 50, 'description': _(u'Minimum amount in percent (%) to allow user to zoom out a document page interactively.')},
{'name': u'ROTATION_STEP', 'global_name': u'DOCUMENTS_ROTATION_STEP', 'default': 90, 'description': _(u'Amount in degrees to rotate a document page per user interaction.')},
#
{'name': u'CACHE_PATH', 'global_name': u'DOCUMENTS_CACHE_PATH', 'default': os.path.join(settings.SITE_ROOT, 'image_cache'), 'exists': True},
{'name': u'CACHE_PATH', 'global_name': u'DOCUMENTS_CACHE_PATH', 'default': os.path.join(settings.MEDIA_ROOT, 'image_cache'), 'exists': True},
]
)