mirror of https://github.com/milvus-io/milvus.git
17 lines
390 B
Python
17 lines
390 B
Python
# -*- coding: utf-8 -*-
|
|
from flask import Flask
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
print ("Load paramters")
|
|
app = Flask(__name__)
|
|
app.config.from_object('engine.settings')
|
|
|
|
#创建数据库对象
|
|
print ("Create database instance")
|
|
db = SQLAlchemy(app)
|
|
|
|
from engine.model.group_table import GroupTable
|
|
from engine.model.file_table import FileTable
|
|
|
|
from engine.controller import views
|