[ckan-dev] Pylons config file loading problems

Sean Hammond sean.hammond at okfn.org
Mon Jul 2 09:40:54 UTC 2012


> What's the right way to load Ckan configuration inside a script?

Hi Eduardo,

As far as I know the CKAN config file is just a standard ini file and
can be parsed using Python's standard ConfigParser module:

    import ConfigParser
    config = ConfigParser.ConfigParser()
    config.read('development.ini')
    config.get('app:main', 'ckan.site_title')




More information about the ckan-dev mailing list