diff --git a/src/website/settings.py b/src/website/settings.py index 1409a4c..9b13621 100644 --- a/src/website/settings.py +++ b/src/website/settings.py @@ -30,9 +30,12 @@ # xml stylesheets are stored here: XML_STYLESHEET_DIR = XML_DIR / "stylesheets" # publications xml files are stored here: -PUBL_XML_DIR = RES_DIR / "publications" +if USE_DOCKER: + PUBL_XML_DIR = XML_INPUT_DIR / "publications" +else: + PUBL_XML_DIR = RES_DIR / "publications" -PUBL_STATIC_DIR = RES_DIR / "all_static_files" / "publications" +PUBL_STATIC_DIR = RES_DIR / "static" / "publications" # Quick-start development settings - unsuitable for production @@ -193,14 +196,16 @@ STATICFILES_DIRS = [ PUBL_STATIC_DIR, - STATIC_ROOT / "webdesign_platform", + RES_DIR / "static" / "webdesign_platform", ] # Exist DB Settings if USE_DOCKER: - EXISTDB_SERVER_URL = "http://xmldb:8080/exist" + EXIST_DOMAIN = "xmldb" else: - EXISTDB_SERVER_URL = "http://localhost:8080/exist" + EXIST_DOMAIN = "localhost" + +EXISTDB_SERVER_URL = f"http://{EXIST_DOMAIN}:8080/exist" EXISTDB_SERVER_USER = 'admin' EXISTDB_SERVER_PASSWORD = '' # EXISTDB_ROOT_COLLECTION = '/db/xml_files/publications'