Skip to content
Snippets Groups Projects
Commit 683bf937 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add sql alchemy engine options to common configurations.

parent 65b00e47
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment