18 lines
387 B
Python
18 lines
387 B
Python
import os
|
|
from datetime import datetime
|
|
from utils import create_logger
|
|
|
|
# 项目根目录
|
|
root_path = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
# 创建日志对象
|
|
logger = create_logger(root_path + '/logs/' + str(datetime.date(datetime.now())) + '.log')
|
|
|
|
|
|
# PostgreSQL连接配置
|
|
host = '118.31.13.117'
|
|
user = 'postgres'
|
|
passwd = 'Edu_123123pos'
|
|
port = 55432
|
|
database = 'opendata' |