You should use instead: `from invenio.base.globals import cfg` and in the code `cfg['CFG_COMMUNITIES_*']`.