summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-02-27 20:01:00 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-02-27 20:01:00 +0800
commit9bbbdeeb5cc7b396660a1892d105c371278c5c3d (patch)
treeb5b2aeb0253354171c6f14cb2d3d5f8107d9b413
parente79e3b90dcf73e762ff9f43892e4342da1802f89 (diff)
lcr/settings.py: move db.sqlite3/logfiles/cts vts files to datafiles dir
so that it would be easy for the deployment with Apache Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--lcr/settings.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lcr/settings.py b/lcr/settings.py
index 33bf99f..0d4ca9e 100644
--- a/lcr/settings.py
+++ b/lcr/settings.py
@@ -15,6 +15,10 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+DATA_FILE_DIR = os.path.join(BASE_DIR, "datafiles")
+# Directoy used to store cts vts result files
+FILES_DIR = os.path.join(DATA_FILE_DIR, "/files/cts-vts")
+
######################################################################
############INFO TO BE UPDATED########################################
@@ -61,7 +65,7 @@ LAVA_SERVERS = {
DATABASES = { ## TO BE UPDATED
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ 'NAME': os.path.join(DATA_FILE_DIR, 'db.sqlite3'),
}
#'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
@@ -88,9 +92,6 @@ if ENABLE_APP_REPORT:
### PLEASE DO NOT CHANGE ANYTHIN IN THE BELOW ##########################
########################################################################
-# Directoy used to store cts vts result files
-FILES_DIR = os.path.join(BASE_DIR, "files/cts-vts")
-
QA_REPORT_DEFAULT = 'production'
# Quick-start development settings - unsuitable for production
@@ -223,7 +224,7 @@ LOGGING = {
'logfile': {
'level':'DEBUG',
'class':'logging.handlers.RotatingFileHandler',
- 'filename': BASE_DIR + "/logfile",
+ 'filename': DATA_FILE_DIR + "/logfiles/logfile",
'maxBytes': 50000,
'backupCount': 2,
'formatter': 'standard',