Skip to content
Snippets Groups Projects
Commit d629511e authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working on: 0.0.32 Release

parent 4920200b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ Flask-Login==0.5.0 ...@@ -9,7 +9,7 @@ Flask-Login==0.5.0
SQLAlchemy>=1.4.5 SQLAlchemy>=1.4.5
celery[redis]>=5.0.5 celery[redis]>=5.0.5
psycopg2-binary>=2.8.6 psycopg2-binary>=2.8.6
mariadb==1.0.6 PyMySQL==1.0.2
wget>=3.2 wget>=3.2
pyecharts>=1.9.0 pyecharts>=1.9.0
pyecharts-extras>=0.0.5 pyecharts-extras>=0.0.5
......
...@@ -24,7 +24,7 @@ def create_app(): ...@@ -24,7 +24,7 @@ def create_app():
login_manager.login_view = 'usr.login' login_manager.login_view = 'usr.login'
login_manager.init_app(my_app) login_manager.init_app(my_app)
my_app.config.from_object("config") my_app.config.from_object("config")
my_db_url_mysql = "mysql+pymysql://{user}:{pw}@{url}/{db}".format( my_db_url_mariadb = "mariadb+pymysql://{user}:{pw}@{url}/{db}?charset=utf8mb4".format(
user=my_app.config['SQLALCHEMY_DATABASE_USER'], user=my_app.config['SQLALCHEMY_DATABASE_USER'],
pw=my_app.config['SQLALCHEMY_DATABASE_PW'], pw=my_app.config['SQLALCHEMY_DATABASE_PW'],
url=my_app.config['SQLALCHEMY_DATABASE_HOST'], url=my_app.config['SQLALCHEMY_DATABASE_HOST'],
...@@ -34,7 +34,7 @@ def create_app(): ...@@ -34,7 +34,7 @@ def create_app():
pw=my_app.config['SQLALCHEMY_DATABASE_PW'], pw=my_app.config['SQLALCHEMY_DATABASE_PW'],
url=my_app.config['SQLALCHEMY_DATABASE_HOST'], url=my_app.config['SQLALCHEMY_DATABASE_HOST'],
db=my_app.config['SQLALCHEMY_DATABASE_DB']) db=my_app.config['SQLALCHEMY_DATABASE_DB'])
my_app.config['SQLALCHEMY_DATABASE_URI'] = my_db_url_mysql my_app.config['SQLALCHEMY_DATABASE_URI'] = my_db_url_mariadb
my_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # silence the deprecation warning my_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # silence the deprecation warning
my_app.config['FLASK_ADMIN_SWATCH'] = 'superhero' my_app.config['FLASK_ADMIN_SWATCH'] = 'superhero'
# cache.init_app(app) # cache.init_app(app)
......
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