rp_meyzieu: fixes configuration to work with the new mandaye version
This commit is contained in:
parent
12ad70e3f1
commit
8f7acbbdd9
|
@ -85,8 +85,11 @@ if config.getboolean('debug', 'log_debug'):
|
|||
## PATH
|
||||
# Configuration directory
|
||||
config_root = config.get('dirs', 'config_root')
|
||||
# Template directory
|
||||
template_directory = os.path.join(BASE_DIR, 'templates')
|
||||
# Templates directories
|
||||
templates_directories = []
|
||||
if config.get('dirs', 'templates_directories'):
|
||||
templates_directories = config.get('dirs', 'templates_directories').split(' ')
|
||||
templates_directories.append(os.path.join(BASE_DIR, 'templates'))
|
||||
# Static url
|
||||
static_url = config.get('dirs', 'static_url')
|
||||
# Static folder
|
||||
|
@ -94,6 +97,12 @@ static_root = config.get('dirs', 'static_root')
|
|||
# Data dir
|
||||
data_dir = config.get('dirs', 'data_dir')
|
||||
|
||||
# template vars
|
||||
template_vars = {}
|
||||
if config.has_section('template_vars'):
|
||||
for option in config.options('template_vars'):
|
||||
template_vars[option] = config.get('template_vars', option)
|
||||
|
||||
# Supported authentification
|
||||
authentifications = {
|
||||
'saml2': 'mandaye.auth.saml2.SAML2Auth'
|
||||
|
|
|
@ -10,6 +10,7 @@ config_root: %(base_dir)s/conf.d
|
|||
data_dir: %(base_dir)s/data
|
||||
static_root: %(base_dir)s/mandaye_meyzieu/static
|
||||
static_url: /mandaye/static
|
||||
templates_directories:
|
||||
|
||||
[debug]
|
||||
debug: false
|
||||
|
@ -18,6 +19,9 @@ log_debug: false
|
|||
; you need to install python-raven for this feature
|
||||
sentry_dsn:
|
||||
|
||||
[template_vars]
|
||||
portal_url: https://mon.meyzieu.fr
|
||||
|
||||
[mandaye]
|
||||
toolbar: false
|
||||
offline_toolbar: false
|
||||
|
|
Reference in New Issue