Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Load title from config file
core/config.py | 1 +
diff --git a/core/config.py b/core/config.py index 78151a860971e503d46a40ad5ad7d3dbb0a9b73b..dda500d8b4b42f6d1300f67bf8f23328d2f09c50 100644 --- a/core/config.py +++ b/core/config.py @@ -4,5 +4,6 @@ config = ConfigParser() config.read_file(open('config.ini')) env = config['meta']['environment'] or 'dev' +title = config['meta']['title'] read_from_config = lambda key: config.get(env, key)