Skip to content

Commit

Permalink
fix: issue with database URI due to Postgree library update
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbpro committed Apr 24, 2021
1 parent 823be4f commit e8b3dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# sets up production environment
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL', 'sqlite:///data.db')
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL', 'sqlite:///data.db').replace("://", "ql://", 1)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = 'rebequinha'

Expand Down

0 comments on commit e8b3dfd

Please sign in to comment.