fix: change project struct
This commit is contained in:
15
config.py
Normal file
15
config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
DIALECT = 'mysql'
|
||||
DRIVER = 'pymysql'
|
||||
USERNAME = 'root'
|
||||
PASSWORD = '1329004986@lm'
|
||||
HOST = 'myhost.fallen-angle.com'
|
||||
PORT = '3306'
|
||||
DATABASE = 'ncov_track'
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT, DATABASE)
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
SQLALCHEMY_ECHO = True
|
||||
|
||||
|
||||
def init_config(app):
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = SQLALCHEMY_DATABASE_URI
|
||||
Reference in New Issue
Block a user