run.py __init__.pyの形をとりあえず作成

This commit is contained in:
furu04 2025-06-10 13:08:08 +09:00
parent 0ab78dcdff
commit c8dee4c978
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
# TODO:DB設定などのコードを書く
def create_app():
app = Flask(__name__)
return app

6
run.py
View File

@ -0,0 +1,6 @@
from app import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)