
Done so far Basic backend skeleton - technology choices - database migration outline - basic self hosting facade - basic REST outline - proof of concept for auth and privileges Basic frontend skeleton - technology choices - pretty robust frontend compilation - top navigation - proof of concept for registration form
12 lines
306 B
Python
12 lines
306 B
Python
import os
|
|
import configobj
|
|
|
|
class Config(object):
|
|
def __init__(self):
|
|
self.config = configobj.ConfigObj('config.ini.dist')
|
|
if os.path.exists('config.ini'):
|
|
self.config.merge(configobj.ConfigObj('config.ini'))
|
|
|
|
def __getitem__(self, key):
|
|
return self.config[key]
|