diff --git a/config.py b/config.py index 1918d822..48eca6b2 100644 --- a/config.py +++ b/config.py @@ -15,6 +15,7 @@ class Config: MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER') ''' ### Flask-SQLAlchemy ### ''' + SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, 'pool_timeout': 30} SQLALCHEMY_TRACK_MODIFICATIONS = False ''' ### Opaque ### ''' @@ -31,8 +32,6 @@ class DevelopmentConfig(Config): DEBUG = True ''' ### Flask-SQLAlchemy ### ''' - SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, - 'pool_timeout': 30} SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format( os.environ.get('POSTGRES_USER'), os.environ.get('POSTGRES_PASSWORD'),