From 54665d67fd06d7cb1dca0efe6c4a7d26aeade78b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Mar 2021 16:36:15 +0100 Subject: migrate from sqlite to mysql. leave off foreignkey constraint --- animism-align/cli/app/settings/app_cfg.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'animism-align/cli/app/settings/app_cfg.py') diff --git a/animism-align/cli/app/settings/app_cfg.py b/animism-align/cli/app/settings/app_cfg.py index de5cb6e..dfd0154 100644 --- a/animism-align/cli/app/settings/app_cfg.py +++ b/animism-align/cli/app/settings/app_cfg.py @@ -38,7 +38,6 @@ CLICK_GROUPS = { 'viewer': '', } - # ----------------------------------------------------------------------------- # File I/O # ----------------------------------------------------------------------------- @@ -69,6 +68,11 @@ DIR_STATIC_SITE_VIEWER = join(DIR_DATA_STORE, 'exports/animism') HASH_TREE_DEPTH = 3 # for sha256 subdirs HASH_BRANCH_SIZE = 3 # for sha256 subdirs +# ----------------------------------------------------------------------------- +# Database +# ----------------------------------------------------------------------------- + +USE_SQLITE = os.getenv("USE_SQLITE") == "True" # ----------------------------------------------------------------------------- # S3 storage @@ -91,7 +95,7 @@ HTTP_EXTERNAL_HOST = os.getenv('HTTP_EXTERNAL_HOST') or f"http://{SERVER_NAME}" # ----------------------------------------------------------------------------- UCODE_OK = u"\u2714" # check ok -UCODE_NOK = u'\u2718' # x no ok +UCODE_NOK = u"\u2718" # x no ok # ----------------------------------------------------------------------------- # Vimeo API -- cgit v1.2.3-70-g09d2