Skip to content

Commit

Permalink
Added sqlalchemy create_engine parameter for "Mysql gone away" problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
zkryakgul committed Jan 30, 2021
1 parent 03f4cdd commit 042e539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Flask settings
SECRET_KEY = 'fgh7Ax809A8w16cv89as1ygASf7y8ASfg78g234'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}

# should be the hostname of your project
HOST = os.environ.get('HOST', '0.0.0.0')
Expand Down

0 comments on commit 042e539

Please sign in to comment.