conf package¶
Submodules¶
conf.admin module¶
conf.apps module¶
conf.config module¶
conf.config
Contains the configuration : paths, constants…
- conf.config.CLOSEDMEDIA_DESTINATION_HOME = '/opt/ws/fab/closedmedia'¶
Closed media files home directory path, where access is controlled (where a subdirectory for each project)
- conf.config.CLUSTERACT_LIFETIME = 10¶
Age criterion to delete a folder about a ClusterAct (into run space into fab) ; see delete_if_old method, delete_too_old_clusteract (admin)
unit : number of days
- conf.config.DB_NAME_DEFAULT = 'default'¶
Database name of default database (admin…)
- conf.config.DB_PATH_DEFAULT = '/opt/ws/db/ws.sqlite3'¶
Database file path of DB_NAME_DEFAULT database
- conf.config.DOWNLOADS_HOME = 'load'¶
closed media structure for downloadable files.
DOWNLOADS_HOME is a ‘root’ dedicated to load (the application managing downloadable files), divided by subdirectories.
DOWNLOADS_HOME path is relative to CLOSEDMEDIA_ROOT.
- conf.config.DOWNLOADS_HOME_DEFAULT = 'load/default'¶
closed media structure for downloadable files by default.
DOWNLOADS_HOME_DEFAULT is relative to CLOSEDMEDIA_ROOT (like DOWNLOADS_HOME).
- conf.config.DOWNLOADS_HOME_SW = 'load/sw'¶
closed media structure for downloadable files about sw application.
DOWNLOADS_HOME_SW is relative to CLOSEDMEDIA_ROOT (like DOWNLOADS_HOME).
- conf.config.DOWNLOAD_LIFETIME = 21¶
Age criterion to delete a folder into download space into factory (see delete_if_old method, and also delete_too_old_downloadvpzdocument admin command)
unit : number of days
- conf.config.INSTALL_HOME_FAB = '/opt/ws/fab/install'¶
install home path, with produced/generated content
- conf.config.IN_PRODUCTION = True¶
IN_PRODUCTION value False or True
In case of IN_PRODUCTION, no console destination for logging information …
- conf.config.JOB_ID_FILE_NAME = 'JOB_ID'¶
cluster job id file name
- conf.config.LOG_FILE = '/opt/ws/fab/log/ws.log'¶
File destination of logging information
Value None for no file destination for logging information
- conf.config.MUSE_HOME = '/opt/ws_rsrc/muse'¶
muse cluster home path
- conf.config.OPT_LOCATION = True¶
OPT_LOCATION value False or True
True if ws is located under ‘/opt’, and else relative location
- conf.config.PACKAGE_HOME = '/opt/ws/ws'¶
ws package home path
- conf.config.PROJECT_HOME = '/opt/ws'¶
ws project home path
- conf.config.RSRC_HOME = '/opt/ws_rsrc'¶
resources home path, where a subfolder by resource
- conf.config.STATIC_DESTINATION_HOME = '/opt/ws/fab/static'¶
Static files home directory path (where a subdirectory for each project)
- conf.config.TEMPLATE_CMN = '/opt/ws/ws/apps/cmn/templates'¶
templates of cmn app
- conf.config.TEMPLATE_LOAD = '/opt/ws/ws/apps/load/templates'¶
templates of load app
- conf.config.TEMPLATE_SW = '/opt/ws/ws/apps/sw/templates'¶
templates of sw app
- conf.config.TOKEN_LIFETIME = datetime.timedelta(seconds=36000)¶
Duration before a token expiration. TOKEN_LIFETIME is an instance of Python’s datetime.timedelta. Examples : datetime.timedelta(seconds=300), datetime.timedelta(days=5).
- conf.config.WSM_HOME = '/opt/ws_rsrc/wsm'¶
ws machine home path
- conf.config.fab_path = '/opt/ws/fab'¶
factory path
- conf.config.get_localdocs_root_url(request)¶
conf.models module¶
conf.tests module¶
conf.views module¶
Module contents¶
conf
This package is part of ws web services
- copyright
Copyright (C) 2020-2024 INRAE http://www.inrae.fr
- license
GPLv3, see LICENSE file for more details
- authors
see AUTHORS file
Configuration application