from app import create_app
app = create_app()
if __name__ == "__main__":
app.run(debug=True)
启动文件介绍
create_app(): 创建应用实例的函数。
app.run(debug=True): 启动应用,开启调试模式。
3. 项目的配置文件介绍
config.py
import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard_to_guess_string'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI') or 'sqlite:///site.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
Turbo Scanner 开源项目教程 turbo-scannerA port scanner and service detection tool that uses 1000 goroutines at once to scan any hosts's ip or fqdn with the sole purpose of testing your own network to ensur...