firrst commit

This commit is contained in:
2025-01-04 19:57:22 +08:00
parent 638bd6536e
commit 71b54bae94
10 changed files with 343 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
app.config['SECRET_KEY'] = 'supersecretkey'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
login_manager = LoginManager(app)
login_manager.login_view = 'login'
from routes import *
from models import *
if __name__ == '__main__':
app.run(debug=True)