departement-loire-atlantique / publik

Publik modules from Département de Loire-Atlantique
MIT License
2 stars 4 forks source link

Replace pyenv.template by a default config file #7

Open julien-bayle opened 4 years ago

julien-bayle commented 4 years ago

Objective : no pyenv file into /home directory Instead of importing pyenv conf into app config, use two separate config files

Now (for combo) : /home/pyenv.py

After : etc/combo/settings.d/env.py (ex pyenv.py) etc/combo/settings.d/custom.py (no import from pyenv.py)

Vayel commented 4 years ago

The import is made by hobo: http://git.entrouvert.org/hobo.git/tree/debian/debian_config_settings_d.py#n4

The env.py file needs to be imported first so that we can easily override settings in custom.py.

For instance, I define here database connection properties but I need to remove them for wcs : https://github.com/Vayel/publik-docker/blob/master/components/wcs.settings.py#L15