Enable unicode for database communication.
This commit is contained in:
parent
1d2a1b0050
commit
0eb51c1797
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ from werkzeug import cached_property
|
|||
from flask import url_for
|
||||
from flask_website import config
|
||||
|
||||
engine = create_engine(config.DATABASE_URI)
|
||||
engine = create_engine(config.DATABASE_URI, convert_unicode=True)
|
||||
db_session = scoped_session(sessionmaker(autocommit=False,
|
||||
autoflush=False,
|
||||
bind=engine))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue