config.py 302 Bytes
Newer Older
carignani's avatar
carignani committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'''
Configuration values
'''

import os

def env_or_false(key):
    '''
    Lookup environment key, returns False is not present
    '''
    try:
        return os.environ[key]
    except KeyError:
        return False

carignani's avatar
carignani committed
16
VERSION = "0.0.4"
carignani's avatar
carignani committed
17
18
19

SECRET = env_or_false("TOSCAIE_SECRET") or 'super_secret_key'