milvus/pyengine/engine/__init__.py

17 lines
398 B
Python
Raw Normal View History

2019-03-19 13:04:27 +00:00
# -*- 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)
2019-03-22 12:55:36 +00:00
from engine.model.group_table import GroupTable
from engine.model.file_table import FileTable
2019-03-19 13:04:27 +00:00
2019-03-22 12:55:36 +00:00
from engine.controller import index_manager