Skip to content
Snippets Groups Projects
Commit c94e8db4 authored by Thomas Wöhlke's avatar Thomas Wöhlke :alien:
Browse files

work 24.01.2021

parent dd3dbd18
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,6 @@ POSTGRES_USER = 'covid19data' ...@@ -2,6 +2,6 @@ POSTGRES_USER = 'covid19data'
POSTGRES_PW = 'covid19datapwd' POSTGRES_PW = 'covid19datapwd'
POSTGRES_URL = 'localhost' POSTGRES_URL = 'localhost'
POSTGRES_DB = 'covid19data' POSTGRES_DB = 'covid19data'
ITEMS_PER_PAGE = 20 ITEMS_PER_PAGE = 10
CELERY_BROKER_URL = 'redis://localhost:6379/0' CELERY_BROKER_URL = 'redis://localhost:6379/0'
SECRET_KEY='vfdjv423ndf654&%%' SECRET_KEY='vfdjv423ndf654&%%'
...@@ -5,7 +5,7 @@ from flask_sqlalchemy import SQLAlchemy ...@@ -5,7 +5,7 @@ from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__) app = Flask(__name__)
CORS(app) CORS(app)
app.config.from_object("config") app.config.from_object("config")
ITEMS_PER_PAGE = 10 ITEMS_PER_PAGE = app.config['ITEMS_PER_PAGE']
DB_URL = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format( DB_URL = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format(
user=app.config['POSTGRES_USER'], user=app.config['POSTGRES_USER'],
pw=app.config['POSTGRES_PW'], pw=app.config['POSTGRES_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