邓淳远、崔鹏宇、翁思扬组云计算期末项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
714 B

import sys
sys.path.append('..')
from flask import request, Flask, jsonify
from APP.view.auth import bp_auth
from APP.view.block import bp_block
from APP.view.start import bp_start
from APP.view.collection import bp_collection
from APP.view.database import init_db
class CustomFlask(Flask):
jinja_options = Flask.jinja_options.copy()
jinja_options.update(dict(
variable_start_string='%%', # Default is '{{', I'm changing this because Vue.js uses '{{' / '}}'
variable_end_string='%%',
))
app = CustomFlask(__name__)
app.register_blueprint(bp_auth)
app.register_blueprint(bp_start)
app.register_blueprint(bp_block)
app.register_blueprint(bp_collection)
init_db()
app.run(debug=True)