29 lines
1009 B
Python
29 lines
1009 B
Python
|
|
|
|
class ApplicationConfig:
|
|
"""
|
|
Basic Configuration for a generic User
|
|
"""
|
|
CURRENT_SETTINGS = 'DEVELOPMENT'
|
|
# databases info
|
|
POSTGRES_USERNAME = 'postgres'
|
|
POSTGRES_PW = 'password'
|
|
POSTGRES_SERVER = '192.168.1.204'
|
|
POSTGRES_PORT = '5432'
|
|
POSTGRES_DBNAME00 = 'eamco'
|
|
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://{}:{}@{}/{}".format(POSTGRES_USERNAME,
|
|
POSTGRES_PW,
|
|
POSTGRES_SERVER,
|
|
POSTGRES_DBNAME00
|
|
)
|
|
|
|
SQLALCHEMY_BINDS = {'eamco': SQLALCHEMY_DATABASE_URI}
|
|
origins = [
|
|
"http://localhost:9000",
|
|
"https://localhost:9513",
|
|
"http://localhost:9514",
|
|
"http://localhost:9512",
|
|
"http://localhost:9511",
|
|
|
|
]
|
|
|