utf8mb4 for database connection

This commit is contained in:
nyaadev
2017-05-23 00:46:26 +02:00
parent c6d4803e90
commit 76812b0ef0
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ app.config.from_object('config')
# Database
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['MYSQL_DATABASE_CHARSET'] = 'utf8mb4'
# Don't refresh cookie each request
app.config['SESSION_REFRESH_EACH_REQUEST'] = False