Mercurial > templog
diff web/config.py @ 83:b9179968a272
- fix set_params (strange)
- allow overriding settings in another config file
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 11 Jul 2012 23:37:13 +0800 |
parents | 0f7c005b3f87 |
children | ccce79dcb316 |
line wrap: on
line diff
--- a/web/config.py Wed Jul 11 22:50:23 2012 +0800 +++ b/web/config.py Wed Jul 11 23:37:13 2012 +0800 @@ -5,7 +5,7 @@ DATA_PATH = '/home/matt/templog/web/data' -HMAC_KEY = 'a hmac key' +HMAC_KEY = 'a hmac key' # override in local config file UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' @@ -33,3 +33,12 @@ # determine by zooming in an image viewer GRAPH_LEFT_MARGIN = 63 + +try: + import localconfig + g = globals() + for k in dir(other): + if k in g: + g[k] = other.__dict__[k] +except ImportError: + pass