in pelican I try to put the defaults in the settings.py module, and not in the code. so the version using ['key'] is the right one I suppose.