2015-11-24 09:40:14 +00:00
|
|
|
|
|
|
|
|
class Config(object):
|
|
|
|
|
DEBUG = False
|
|
|
|
|
ASSETS_DEBUG = False
|
|
|
|
|
cache = False
|
|
|
|
|
manifest = True
|
|
|
|
|
|
2015-11-25 15:29:12 +00:00
|
|
|
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
|
|
|
|
|
SQLALCHEMY_RECORD_QUERIES = True
|
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/notifications_admin'
|
|
|
|
|
MAX_FAILED_LOGIN_COUNT = 10
|
2015-11-27 09:47:29 +00:00
|
|
|
SECRET_KEY = 'secret-key-unique-changeme'
|
2015-11-25 15:29:12 +00:00
|
|
|
|
2015-11-24 09:40:14 +00:00
|
|
|
|
|
|
|
|
class Development(Config):
|
|
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Test(Config):
|
|
|
|
|
DEBUG = False
|
2015-11-25 15:29:12 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notifications_admin'
|
2015-11-24 09:40:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
configs = {
|
|
|
|
|
'development': Development,
|
2015-11-25 15:29:12 +00:00
|
|
|
'test': Test
|
2015-11-24 09:40:14 +00:00
|
|
|
}
|