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

work

parent 31b4214c
No related branches found
No related tags found
1 merge request!162Refactoring 2021 05 20 start
...@@ -11,7 +11,7 @@ celery[redis]>=5.0.5 ...@@ -11,7 +11,7 @@ celery[redis]>=5.0.5
SQLAlchemy>=1.4.15 SQLAlchemy>=1.4.15
memcache>=0.5.1 memcache>=0.5.1
PyMySQL>=1.0.2 PyMySQL>=1.0.2
psycopg2-binary>=2.8.6 # psycopg2-binary>=2.8.6
wget>=3.2 wget>=3.2
pyecharts>=1.9.0 pyecharts>=1.9.0
pyecharts-extras>=0.0.5 pyecharts-extras>=0.0.5
......
...@@ -44,6 +44,7 @@ def create_app(): ...@@ -44,6 +44,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 = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format(
my_db_url = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format( my_db_url = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.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'],
......
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