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.
23 lines
681 B
23 lines
681 B
# pip 使用国内镜像源
|
|
# https://www.runoob.com/w3cnote/pip-cn-mirror.html
|
|
# pip install flask
|
|
# pip install pymysql
|
|
# pip install dbutils
|
|
# pip install redis
|
|
# pip install tornado
|
|
# 发布
|
|
# https://www.cnblogs.com/xujiecnblogs/p/17539106.html
|
|
|
|
from flask import Flask
|
|
from ZhuQue.Controller.auth import auth_blueprint
|
|
from ZhuQue.Controller.blog import blog_blueprint
|
|
|
|
app = Flask(__name__)
|
|
|
|
# 注册蓝图
|
|
app.register_blueprint(auth_blueprint, url_prefix='/ZhueQue/auth') # 第一个模块
|
|
app.register_blueprint(blog_blueprint, url_prefix='/ZhuQue/blog') # 第二个模块
|
|
|
|
if __name__ == '__main__':
|
|
app.run(port=5000) # 指定端口为5000
|