Updated config to be string based not class based and removed old style live/staging files.

This commit is contained in:
Martyn Inglis
2016-07-05 14:26:02 +01:00
parent fe84674a77
commit 4222027184
4 changed files with 13 additions and 13 deletions

View File

@@ -3,7 +3,6 @@ from datetime import timedelta
class Config(object):
DEBUG = False
ADMIN_CLIENT_SECRET = os.environ['ADMIN_CLIENT_SECRET']
ADMIN_CLIENT_USER_NAME = os.environ['ADMIN_CLIENT_USER_NAME']
@@ -92,9 +91,9 @@ class Live(Config):
configs = {
'development': 'config.Development',
'test': 'config.Test',
'preview': 'config.Preview',
'staging': 'config.Staging',
'live': 'config.Live'
'development': Development,
'test': Test,
'preview': Preview,
'staging': Staging,
'live': Live
}