misc-cazino/metz/change_db_settings.py

9 lines
195 B
Python

from quixote import get_publisher
pub = get_publisher()
postgres_conf = pub.cfg['postgresql']
del postgres_conf['password']
postgres_conf['host'] = ''
postgres_conf['user'] = ''
pub.write_cfg()