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

@@ -14,7 +14,9 @@ import sys
_file_path = os.path.abspath(os.path.dirname(__file__)).split('/')
BASE_DIR = SITE_ROOT = '/'.join(_file_path[0:-2])
BASE_DIR = '/'.join(_file_path[0:-2])
MEDIA_ROOT = os.path.join(BASE_DIR, 'mayan', 'media')
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
@@ -118,7 +120,7 @@ WSGI_APPLICATION = 'mayan.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(SITE_ROOT, 'db.sqlite3'),
'NAME': os.path.join(MEDIA_ROOT, 'db.sqlite3'),
}
}